Hierarchy (View Summary)

Implements

Constructors

Properties

Methods

addCustomFields addTestResultsToTestRun addTestResultsToTestRunSession addWorkItemToTestLinks createAcceptHeader createBuildAttachmentInLogStore createEnvironment createFailureType createNotification createRequestOptions createTestIterationResultAttachment createTestResultAttachment createTestRun createTestRunAttachment createTestRunLogStoreAttachment createTestSession createTestSettings createTestSubResultAttachment deleteFailureType deleteTestMethodToWorkItemLink deleteTestResultAttachment deleteTestRun deleteTestRunAttachment deleteTestRunLogStoreAttachment deleteTestSettings fetchSourceCodeCoverageReport formatResponse getBugsLinkedToTestResult getBuildCodeCoverage getCodeCoverageSummary getCoverageStatusBadge getFailureTypes getFileLevelCodeCoverage getFlakyTestResultsByBuildDefinitionId getFlakyTestResultsByTestRun getResultGroupsByBuild getResultGroupsByRelease getSessionNotifications getSimilarTestResults getTestIterationAttachmentContent getTestIterationAttachmentZip getTestLogsForBuild getTestLogStoreEndpointDetailsForBuildLog getTestLogStoreEndpointDetailsForResultLog getTestLogStoreEndpointDetailsForRunLog getTestLogStoreEndpointDetailsForSubResultLog getTestPipelineMetrics getTestResultAttachmentContent getTestResultAttachments getTestResultAttachmentZip getTestResultById getTestResultDetailsForBuild getTestResultDetailsForRelease getTestResultLogs getTestResults getTestResultsByBuild getTestResultsByPipeline getTestResultsByQuery getTestResultsByQueryWiql getTestResultsByRelease getTestResultsSettings getTestResultWorkItemsById getTestRunAttachmentContent getTestRunAttachments getTestRunAttachmentZip getTestRunById getTestRunCodeCoverage getTestRunLogs getTestRunLogStoreAttachmentContent getTestRunLogStoreAttachments getTestRunLogStoreAttachmentZip getTestRunMessageLogs getTestRuns getTestRunsBySessionId getTestRunStatistics getTestRunSummaryByOutcome getTestSession getTestSessionLayout getTestSessionResults getTestSettingsById getTestSubResultAttachmentContent getTestSubResultAttachments getTestSubResultAttachmentZip getTestSubResultLogs getTestTagsForBuild getTestTagsForRelease getTestTagSummaryForBuild getTestTagSummaryForRelease publishTestResultDocument queryCustomFields queryResultTrendForBuild queryResultTrendForRelease queryTestHistory queryTestMethodLinkedWorkItems queryTestResultHistory queryTestResultsMetaData queryTestResultsReportForBuild queryTestResultsReportForPipeline queryTestResultsReportForRelease queryTestResultsSummaryForReleases queryTestResultWorkItems queryTestRuns queryTestSummaryByRequirement testLogStoreEndpointDetailsForBuild testLogStoreEndpointDetailsForResult testLogStoreEndpointDetailsForRun testResultsGroupDetails updateCodeCoverageSummary updatePipelinesTestSettings updateTestResults updateTestResultsMetaData updateTestResultsToTestRunSession updateTestRun updateTestRunTags

Constructors

Properties

baseUrl: string
http: HttpClient
rest: RestClient
userAgent: string
vsoClient: VsoClient
RESOURCE_AREA_ID: "c83eaf52-edf3-4034-ae11-17d38f25404c"

Methods

  • Gets the coverage status for the last successful build of a definition, optionally scoped to a specific branch

    Parameters

    • project: string

      Project ID or project name

    • definition: string

      The ID or name of the definition.

    • OptionalbranchName: string

      The branch name.

    • Optionallabel: string

      The String to replace the default text on the left side of the badge.

    Returns Promise<string>

  • Gets the list of results whose failure matches with the provided one.

    Parameters

    • customHeaders: any
    • project: string

      Project ID or project name

    • runId: number

      id of test run

    • testResultId: number

      id of test result inside a test run

    • testSubResultId: number

      id of subresult inside a test result

    • Optionaltop: number

      Maximum number of results to return

    • OptionalcontinuationToken: String

      Header to pass the continuationToken

    Returns Promise<TestCaseResult[]>

  • Returns a test iteration attachment

    Parameters

    • project: string

      Project ID or project name

    • runId: number
    • testCaseResultId: number
    • attachmentId: number
    • iterationId: number

    Returns Promise<ReadableStream>

  • Returns a test iteration attachment

    Parameters

    • project: string

      Project ID or project name

    • runId: number
    • testCaseResultId: number
    • attachmentId: number
    • iterationId: number

    Returns Promise<ReadableStream>

  • Get list of build attachments reference

    Parameters

    • customHeaders: any
    • project: string

      Project ID or project name

    • buildId: number

      Id of the build to get

    • type: TestLogType

      type of the attachment to get

    • OptionaldirectoryPath: string

      directory path for which attachments are needed

    • OptionalfileNamePrefix: string

      file name prefix to filter the list of attachment

    • OptionalfetchMetaData: boolean

      Default is false, set if metadata is needed

    • Optionaltop: number

      Number of test attachments reference to return

    • OptionalcontinuationToken: String

      Header to pass the continuationToken

    Returns Promise<PagedList<TestLog>>

  • Get summary of test results.

    Parameters

    • project: string

      Project ID or project name

    • pipelineId: number

      Pipeline Id. This is same as build Id.

    • OptionalstageName: string

      Name of the stage. Maximum supported length for name is 256 character.

    • OptionalphaseName: string

      Name of the phase. Maximum supported length for name is 256 character.

    • OptionaljobName: string

      Matrixing in YAML generates copies of a job with different inputs in matrix. JobName is the name of those input. Maximum supported length for name is 256 character.

    • OptionalmetricNames: Metrics[]
    • OptionalgroupByNode: boolean

      Group summary for each node of the pipleine heirarchy

    Returns Promise<PipelineTestMetrics>

  • 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 list of test result attachments reference

    Parameters

    • customHeaders: any
    • project: string

      Project ID or project name

    • runId: number

      Id of the test run that contains the result

    • resultId: number

      Id of the test result

    • type: TestLogType

      type of attachments to get

    • OptionaldirectoryPath: string

      directory path of attachments to get

    • OptionalfileNamePrefix: string

      file name prefix to filter the list of attachment

    • OptionalfetchMetaData: boolean

      Default is false, set if metadata is needed

    • Optionaltop: number

      Numbe of attachments reference to return

    • OptionalcontinuationToken: String

      Header to pass the continuationToken

    Returns Promise<PagedList<TestLog>>

  • Get a list of results.

    Parameters

    • customHeaders: any
    • project: string

      Project ID or project name

    • pipelineId: number

      Pipeline Id. This is same as build Id.

    • OptionalstageName: string

      Name of the stage. Maximum supported length for name is 256 character.

    • OptionalphaseName: string

      Name of the phase. Maximum supported length for name is 256 character.

    • OptionaljobName: string

      Matrixing in YAML generates copies of a job with different inputs in matrix. JobName is the name of those input. Maximum supported length for name is 256 character.

    • Optionaloutcomes: TestOutcome[]

      List of outcome of results

    • Optionaltop: number

      Maximum number of results to return

    • OptionalcontinuationToken: String

      Header to pass the continuationToken

    Returns Promise<PagedList<ShallowTestCaseResult>>

  • Get list of test run attachments reference

    Parameters

    • customHeaders: any
    • project: string

      Project ID or project name

    • runId: number

      Id of the test run

    • type: TestLogType

      type of the attachments to get

    • OptionaldirectoryPath: string

      directory path for which attachments are needed

    • OptionalfileNamePrefix: string

      file name prefix to filter the list of attachment

    • OptionalfetchMetaData: boolean

      Default is false, set if metadata is needed

    • Optionaltop: number

      Number of attachments reference to return

    • OptionalcontinuationToken: String

      Header to pass the continuationToken

    Returns Promise<PagedList<TestLog>>

  • Parameters

    • project: string

      Project ID or project name

    • OptionalbuildUri: string
    • Optionalowner: string
    • OptionaltmiRunId: string
    • OptionalplanId: number
    • OptionalincludeRunDetails: boolean
    • Optionalautomated: boolean
    • Optionalskip: number
    • Optionaltop: number

    Returns Promise<TestRun[]>

  • Returns a test sub result attachment

    Parameters

    • project: string

      Project ID or project name

    • runId: number
    • testCaseResultId: number
    • attachmentId: number
    • testSubResultId: number

    Returns Promise<ReadableStream>

  • Returns a test sub result attachment

    Parameters

    • project: string

      Project ID or project name

    • runId: number
    • testCaseResultId: number
    • attachmentId: number
    • testSubResultId: number

    Returns Promise<ReadableStream>

  • Get list of test subresult attachments reference

    Parameters

    • customHeaders: any
    • project: string

      Project ID or project name

    • runId: number

      Id of the test run that contains the results

    • resultId: number

      Id of the test result that contains subresult

    • subResultId: number

      Id of the test subresult

    • type: TestLogType

      type of the attachments to get

    • OptionaldirectoryPath: string

      directory path of the attachment to get

    • OptionalfileNamePrefix: string

      file name prefix to filter the list of attachments

    • OptionalfetchMetaData: boolean

      Default is false, set if metadata is needed

    • Optionaltop: number

      Number of attachments reference to return

    • OptionalcontinuationToken: String

      Header to pass the continuationToken

    Returns Promise<PagedList<TestLog>>

  • Get summary of test results.

    Parameters

    • project: string

      Project ID or project name

    • pipelineId: number

      Pipeline Id. This is same as build Id.

    • OptionalstageName: string

      Name of the stage. Maximum supported length for name is 256 character.

    • OptionalphaseName: string

      Name of the phase. Maximum supported length for name is 256 character.

    • OptionaljobName: string

      Matrixing in YAML generates copies of a job with different inputs in matrix. JobName is the name of those input. Maximum supported length for name is 256 character.

    • OptionalincludeFailureDetails: boolean

      If true returns failure insights

    Returns Promise<TestResultSummary>

  • Query Test Result WorkItems based on filter

    Parameters

    • project: string

      Project ID or project name

    • workItemCategory: string

      can take values Microsoft.BugCategory or all(for getting all workitems)

    • 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.

    • 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.

    • OptionalbuildDefIds: number[]

      Build Definition Ids of the Runs to be queried, comma separated list of valid ids.

    • 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.

    • OptionalreleaseDefIds: number[]

      Release Definition Ids of the Runs to be queried, comma separated list of valid ids.

    • OptionalreleaseEnvIds: number[]

      Release Environment Ids of the Runs to be queried, comma separated list of valid ids.

    • OptionalreleaseEnvDefIds: number[]

      Release Environment Definition Ids of the Runs to be queried, comma separated list of valid ids.

    • 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>>

  • Get all the available groups details and for these groups get failed and aborted results.

    Parameters

    • project: string

      Project ID or project name

    • pipelineId: number

      Pipeline Id. This is same as build Id.

    • OptionalstageName: string

      Name of the stage. Maximum supported length for name is 256 character.

    • OptionalphaseName: string

      Name of the phase. Maximum supported length for name is 256 character.

    • OptionaljobName: string

      Matrixing in YAML generates copies of a job with different inputs in matrix. JobName is the name of those input. Maximum supported length for name is 256 character.

    • OptionalshouldIncludeFailedAndAbortedResults: boolean

      If true, it will return Ids of failed and aborted results for each test group

    • OptionalqueryGroupSummaryForInProgress: boolean

      If true, it will calculate summary for InProgress runs as well.

    Returns Promise<TestResultsDetails>