Hierarchy (View Summary)

Implements

Constructors

Properties

Methods

addCustomFields addTestCasesToSuite addTestResultsToTestRun addWorkItemToTestLinks createAcceptHeader createRequestOptions createTestIterationResultAttachment createTestResultAttachment createTestRun createTestRunAttachment createTestSession createTestSettings createTestSubResultAttachment deleteSharedParameter deleteSharedStep deleteTestCase deleteTestMethodToWorkItemLink deleteTestRun deleteTestSettings formatResponse getBugsLinkedToTestResult getBuildCodeCoverage getCodeCoverageSummary getLinkedWorkItemsByQuery getPoint getPoints getPointsByQuery getResultGroupsByBuild getResultGroupsByRelease getResultRetentionSettings getTestCaseById getTestCases getTestIteration getTestIterations getTestResultAttachmentContent getTestResultAttachments getTestResultAttachmentZip getTestResultById getTestResultDetailsForBuild getTestResultDetailsForRelease getTestResults getTestResultsByBuild getTestResultsByQuery getTestResultsByRelease getTestRunAttachmentContent getTestRunAttachments getTestRunAttachmentZip getTestRunById getTestRunCodeCoverage getTestRunLogs getTestRuns getTestRunStatistics getTestSessions getTestSettingsById getTestSubResultAttachmentContent getTestSubResultAttachments getTestSubResultAttachmentZip publishTestResultDocument queryCustomFields queryResultTrendForBuild queryResultTrendForRelease queryTestHistory queryTestMethodLinkedWorkItems queryTestResultHistory queryTestResultsMetaData queryTestResultsReportForBuild queryTestResultsReportForRelease queryTestResultsSummaryForReleases queryTestResultWorkItems queryTestRuns queryTestSummaryByRequirement removeTestCasesFromSuiteUrl updateCodeCoverageSummary updateResultRetentionSettings updateSuiteTestCases updateTestPoints updateTestResults updateTestRun updateTestSession

Constructors

Properties

baseUrl: string
http: HttpClient
rest: RestClient
userAgent: string
vsoClient: VsoClient
RESOURCE_AREA_ID: "c2aa639c-3ccc-4740-b3b6-ce2a1e1d984e"

Methods

  • Add test cases to suite.

    Parameters

    • project: string

      Project ID or project name

    • planId: number

      ID of the test plan that contains the suite.

    • suiteId: number

      ID of the test suite to which the test cases must be added.

    • testCaseIds: string

      IDs of the test cases to add to the suite. Ids are specified in comma separated format.

    Returns Promise<SuiteTestCase[]>

  • Get code coverage data for a build.

    Parameters

    • project: string

      Project ID or project name

    • buildId: number

      ID of the build for which code coverage data needs to be fetched.

    • flags: number

      Value of flags determine the level of code coverage details to be fetched. Flags are additive. Expected Values are 1 for Modules, 2 for Functions, 4 for BlockData.

    Returns Promise<BuildCoverage[]>

  • Get a test point.

    Parameters

    • project: string

      Project ID or project name

    • planId: number

      ID of the test plan.

    • suiteId: number

      ID of the suite that contains the point.

    • pointIds: number

      ID of the test point to get.

    • OptionalwitFields: string

      Comma-separated list of work item field names.

    Returns Promise<TestPoint>

  • Get a list of test points.

    Parameters

    • project: string

      Project ID or project name

    • planId: number

      ID of the test plan.

    • suiteId: number

      ID of the suite that contains the points.

    • OptionalwitFields: string

      Comma-separated list of work item field names.

    • OptionalconfigurationId: string

      Get test points for specific configuration.

    • OptionaltestCaseId: string

      Get test points for a specific test case, valid when configurationId is not set.

    • OptionaltestPointIds: string

      Get test points for comma-separated list of test point IDs, valid only when configurationId and testCaseId are not set.

    • OptionalincludePointDetails: boolean

      Include all properties for the test point.

    • Optionalskip: number

      Number of test points to skip..

    • Optionaltop: number

      Number of test points to return.

    Returns Promise<TestPoint[]>

  • Get a specific test case in a test suite with test case id.

    Parameters

    • project: string

      Project ID or project name

    • planId: number

      ID of the test plan that contains the suites.

    • suiteId: number

      ID of the suite that contains the test case.

    • testCaseIds: number

      ID of the test case to get.

    Returns Promise<SuiteTestCase>

  • Get iteration for a result

    Parameters

    • project: string

      Project ID or project name

    • runId: number

      ID of the test run that contains the result.

    • testCaseResultId: number

      ID of the test result that contains the iterations.

    • iterationId: number

      Id of the test results Iteration.

    • OptionalincludeActionResults: boolean

      Include result details for each action performed in the test iteration. ActionResults refer to outcome (pass/fail) of test steps that are executed as part of a running a manual test. Including the ActionResults flag gets the outcome of test steps in the actionResults section and test parameters in the parameters section for each test iteration.

    Returns Promise<TestIterationDetailsModel>

  • Get iterations for a result

    Parameters

    • project: string

      Project ID or project name

    • runId: number

      ID of the test run that contains the result.

    • testCaseResultId: number

      ID of the test result that contains the iterations.

    • OptionalincludeActionResults: boolean

      Include result details for each action performed in the test iteration. ActionResults refer to outcome (pass/fail) of test steps that are executed as part of a running a manual test. Including the ActionResults flag gets the outcome of test steps in the actionResults section and test parameters in the parameters section for each test iteration.

    Returns Promise<TestIterationDetailsModel[]>

  • Download a test result attachment by its ID.

    Parameters

    • project: string

      Project ID or project name

    • runId: number

      ID of the test run that contains the testCaseResultId.

    • testCaseResultId: number

      ID of the test result whose attachment has to be downloaded.

    • attachmentId: number

      ID of the test result attachment to be downloaded.

    Returns Promise<ReadableStream>

  • Download a test result attachment by its ID.

    Parameters

    • project: string

      Project ID or project name

    • runId: number

      ID of the test run that contains the testCaseResultId.

    • testCaseResultId: number

      ID of the test result whose attachment has to be downloaded.

    • attachmentId: number

      ID of the test result attachment to be downloaded.

    Returns Promise<ReadableStream>

  • Parameters

    • project: string

      Project ID or project name

    • buildId: number
    • OptionalpublishContext: string
    • OptionalgroupBy: string
    • Optionalfilter: string
    • Optionalorderby: string
    • OptionalshouldIncludeResults: boolean
    • OptionalqueryRunSummaryForInProgress: boolean

    Returns Promise<TestResultsDetails>

  • Parameters

    • project: string

      Project ID or project name

    • releaseId: number
    • releaseEnvId: number
    • OptionalpublishContext: string
    • OptionalgroupBy: string
    • Optionalfilter: string
    • Optionalorderby: string
    • OptionalshouldIncludeResults: boolean
    • OptionalqueryRunSummaryForInProgress: boolean

    Returns Promise<TestResultsDetails>

  • Get test results for a test run.

    Parameters

    • project: string

      Project ID or project name

    • runId: number

      Test run ID of test results to fetch.

    • OptionaldetailsToInclude: ResultDetails

      Details to include with test results. Default is None. Other values are Iterations and WorkItems.

    • Optionalskip: number

      Number of test results to skip from beginning.

    • Optionaltop: number

      Number of test results to return. Maximum is 1000 when detailsToInclude is None and 200 otherwise.

    • Optionaloutcomes: TestOutcome[]

      Comma separated list of test outcomes to filter test results.

    Returns Promise<TestCaseResult[]>

  • Download a test run attachment by its ID.

    Parameters

    • project: string

      Project ID or project name

    • runId: number

      ID of the test run whose attachment has to be downloaded.

    • attachmentId: number

      ID of the test run attachment to be downloaded.

    Returns Promise<ReadableStream>

  • Download a test run attachment by its ID.

    Parameters

    • project: string

      Project ID or project name

    • runId: number

      ID of the test run whose attachment has to be downloaded.

    • attachmentId: number

      ID of the test run attachment to be downloaded.

    Returns Promise<ReadableStream>

  • Get a test run by its ID.

    Parameters

    • project: string

      Project ID or project name

    • runId: number

      ID of the run to get.

    • OptionalincludeDetails: boolean

      Default value is true. It includes details like run statistics, release, build, test environment, post process state, and more.

    Returns Promise<TestRun>

  • Get code coverage data for a test run

    Parameters

    • project: string

      Project ID or project name

    • runId: number

      ID of the test run for which code coverage data needs to be fetched.

    • flags: number

      Value of flags determine the level of code coverage details to be fetched. Flags are additive. Expected Values are 1 for Modules, 2 for Functions, 4 for BlockData.

    Returns Promise<TestRunCoverage[]>

  • Get a list of test runs.

    Parameters

    • project: string

      Project ID or project name

    • OptionalbuildUri: string

      URI of the build that the runs used.

    • Optionalowner: string

      Team foundation ID of the owner of the runs.

    • OptionaltmiRunId: string
    • OptionalplanId: number

      ID of the test plan that the runs are a part of.

    • OptionalincludeRunDetails: boolean

      If true, include all the properties of the runs.

    • Optionalautomated: boolean

      If true, only returns automated runs.

    • Optionalskip: number

      Number of test runs to skip.

    • Optionaltop: number

      Number of test runs to return.

    Returns Promise<TestRun[]>

  • Get a list of test sessions

    Parameters

    • teamContext: TeamContext

      The team context for the operation

    • Optionalperiod: number

      Period in days from now, for which test sessions are fetched.

    • OptionalallSessions: boolean

      If false, returns test sessions for current user. Otherwise, it returns test sessions for all users

    • OptionalincludeAllProperties: boolean

      If true, it returns all properties of the test sessions. Otherwise, it returns the skinny version.

    • Optionalsource: TestSessionSource

      Source of the test session.

    • OptionalincludeOnlyCompletedSessions: boolean

      If true, it returns test sessions in completed state. Otherwise, it returns test sessions for all states

    Returns Promise<TestSession[]>

  • Download a test sub result attachment

    Parameters

    • project: string

      Project ID or project name

    • runId: number

      ID of the test run that contains the result.

    • testCaseResultId: number

      ID of the test results that contains sub result.

    • attachmentId: number

      ID of the test result attachment to be downloaded

    • testSubResultId: number

      ID of the test sub result whose attachment has to be downloaded

    Returns Promise<ReadableStream>

  • Get list of test sub result attachments

    Parameters

    • project: string

      Project ID or project name

    • runId: number

      ID of the test run that contains the result.

    • testCaseResultId: number

      ID of the test results that contains sub result.

    • testSubResultId: number

      ID of the test sub result whose attachment has to be downloaded

    Returns Promise<TestAttachment[]>

  • Download a test sub result attachment

    Parameters

    • project: string

      Project ID or project name

    • runId: number

      ID of the test run that contains the result.

    • testCaseResultId: number

      ID of the test results that contains sub result.

    • attachmentId: number

      ID of the test result attachment to be downloaded

    • testSubResultId: number

      ID of the test sub result whose attachment has to be downloaded

    Returns Promise<ReadableStream>

  • Parameters

    • project: string

      Project ID or project name

    • workItemCategory: string
    • OptionalautomatedTestName: string
    • OptionaltestCaseId: number
    • OptionalmaxCompleteDate: Date
    • Optionaldays: number
    • OptionalworkItemCount: number

    Returns Promise<WorkItemReference[]>

  • Query Test Runs based on filters. Mandatory fields are minLastUpdatedDate and maxLastUpdatedDate.

    Parameters

    • project: string

      Project ID or project name

    • minLastUpdatedDate: Date

      Minimum Last Modified Date of run to be queried (Mandatory).

    • maxLastUpdatedDate: Date

      Maximum Last Modified Date of run to be queried (Mandatory, difference between min and max date can be atmost 7 days).

    • Optionalstate: TestRunState

      Current state of the Runs to be queried.

    • OptionalplanIds: number[]

      Plan Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).

    • OptionalisAutomated: boolean

      Automation type of the Runs to be queried.

    • OptionalpublishContext: TestRunPublishContext

      PublishContext of the Runs to be queried.

    • OptionalbuildIds: number[]

      Build Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).

    • OptionalbuildDefIds: number[]

      Build Definition Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).

    • OptionalbranchName: string

      Source Branch name of the Runs to be queried.

    • OptionalreleaseIds: number[]

      Release Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).

    • OptionalreleaseDefIds: number[]

      Release Definition Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).

    • OptionalreleaseEnvIds: number[]

      Release Environment Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).

    • OptionalreleaseEnvDefIds: number[]

      Release Environment Definition Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).

    • OptionalrunTitle: string

      Run Title of the Runs to be queried.

    • Optionaltop: number

      Number of runs to be queried. Limit is 100

    • OptionalcontinuationToken: string

      continuationToken received from previous batch or null for first batch. It is not supposed to be created (or altered, if received from last batch) by user.

    Returns Promise<PagedList<TestRun>>

  • The test points associated with the test cases are removed from the test suite. The test case work item is not deleted from the system. See test cases resource to delete a test case permanently.

    Parameters

    • project: string

      Project ID or project name

    • planId: number

      ID of the test plan that contains the suite.

    • suiteId: number

      ID of the suite to get.

    • testCaseIds: string

      IDs of the test cases to remove from the suite.

    Returns Promise<void>

  • Updates the properties of the test case association in a suite.

    Parameters

    • suiteTestCaseUpdateModel: SuiteTestCaseUpdateModel

      Model for updation of the properties of test case suite association.

    • project: string

      Project ID or project name

    • planId: number

      ID of the test plan that contains the suite.

    • suiteId: number

      ID of the test suite to which the test cases must be added.

    • testCaseIds: string

      IDs of the test cases to add to the suite. Ids are specified in comma separated format.

    Returns Promise<SuiteTestCase[]>

  • Update test points.

    Parameters

    • pointUpdateModel: PointUpdateModel

      Data to update.

    • project: string

      Project ID or project name

    • planId: number

      ID of the test plan.

    • suiteId: number

      ID of the suite that contains the points.

    • pointIds: string

      ID of the test point to get. Use a comma-separated list of IDs to update multiple test points.

    Returns Promise<TestPoint[]>