Resultsummarybypipeline - Query
Get summary of test results.
GET https://vstmr.dev.azure.com/{organization}/{project}/_apis/testresults/resultsummarybypipeline?pipelineId={pipelineId}&api-version=7.2-preview.1
GET https://vstmr.dev.azure.com/{organization}/{project}/_apis/testresults/resultsummarybypipeline?pipelineId={pipelineId}&stageName={stageName}&phaseName={phaseName}&jobName={jobName}&includeFailureDetails={includeFailureDetails}&api-version=7.2-preview.1
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
organization
|
path | True |
string |
The name of the Azure DevOps organization. |
project
|
path | True |
string |
Project ID or project name |
api-version
|
query | True |
string |
Version of the API to use. This should be set to '7.2-preview.1' to use this version of the api. |
pipeline
|
query | True |
integer int32 |
Pipeline Id. This is same as build Id. |
include
|
query |
boolean |
If true returns failure insights |
|
job
|
query |
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. |
|
phase
|
query |
string |
Name of the phase. Maximum supported length for name is 256 character. |
|
stage
|
query |
string |
Name of the stage. Maximum supported length for name is 256 character. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
successful operation |
Security
accessToken
Personal access token. Use any value for the user name and the token as the password.
Type:
basic
Definitions
Name | Description |
---|---|
Aggregated |
|
Aggregated |
|
Aggregated |
|
Aggregated |
|
Aggregated |
|
Build |
Reference to a build. |
Job |
Job in pipeline. This is related to matrixing in YAML. |
Phase |
Phase in pipeline |
Pipeline |
Pipeline reference |
Project |
|
Project |
|
Release |
Reference to a release. |
Stage |
Stage in pipeline |
Team |
|
Test |
Reference to a test result. |
Test |
|
Test |
|
Test |
|
Test |
|
Test |
|
Test |
|
Test |
|
Test |
AggregatedResultsAnalysis
Name | Type | Description |
---|---|---|
duration |
string |
|
notReportedResultsByOutcome |
<string,
Aggregated |
|
previousContext | ||
resultsByOutcome |
<string,
Aggregated |
|
resultsDifference | ||
runSummaryByOutcome |
<string,
Aggregated |
|
runSummaryByState |
<string,
Aggregated |
|
totalTests |
integer |
AggregatedResultsByOutcome
Name | Type | Description |
---|---|---|
count |
integer |
|
duration |
string |
|
groupByField |
string |
|
groupByValue |
object |
|
outcome | ||
rerunResultCount |
integer |
AggregatedResultsDifference
Name | Type | Description |
---|---|---|
increaseInDuration |
string |
|
increaseInFailures |
integer |
|
increaseInNonImpactedTests |
integer |
|
increaseInOtherTests |
integer |
|
increaseInPassedTests |
integer |
|
increaseInTotalTests |
integer |
AggregatedRunsByOutcome
Name | Type | Description |
---|---|---|
outcome | ||
runsCount |
integer |
AggregatedRunsByState
Name | Type | Description |
---|---|---|
resultsByOutcome |
<string,
Aggregated |
|
runsCount |
integer |
|
state |
BuildReference
Reference to a build.
Name | Type | Description |
---|---|---|
branchName |
string |
Branch name. |
buildSystem |
string |
Build system. |
definitionId |
integer |
Build Definition ID. |
id |
integer |
Build ID. |
number |
string |
Build Number. |
repositoryId |
string |
Repository ID. |
uri |
string |
Build URI. |
JobReference
Job in pipeline. This is related to matrixing in YAML.
Name | Type | Description |
---|---|---|
attempt |
integer |
Attempt number of the job |
jobName |
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. |
PhaseReference
Phase in pipeline
Name | Type | Description |
---|---|---|
attempt |
integer |
Attempt number of the phase |
phaseName |
string |
Name of the phase. Maximum supported length for name is 256 character. |
PipelineReference
Pipeline reference
Name | Type | Description |
---|---|---|
jobReference |
Reference of the job |
|
phaseReference |
Reference of the phase. |
|
pipelineDefinitionId |
integer |
Reference of the BuildDefinitionId. |
pipelineId |
integer |
Reference of the pipeline with which this pipeline instance is related. |
stageReference |
Reference of the stage. |
ProjectState
Name | Type | Description |
---|---|---|
all |
string |
|
createPending |
string |
|
deleted |
string |
|
deleting |
string |
|
new |
string |
|
unchanged |
string |
|
wellFormed |
string |
ProjectVisibility
Name | Type | Description |
---|---|---|
private |
string |
|
public |
string |
ReleaseReference
Reference to a release.
Name | Type | Description |
---|---|---|
attempt |
integer |
Number of Release Attempt. |
creationDate |
string |
Release Creation Date(UTC). |
definitionId |
integer |
Release definition ID. |
environmentCreationDate |
string |
Environment creation Date(UTC). |
environmentDefinitionId |
integer |
Release environment definition ID. |
environmentDefinitionName |
string |
Release environment definition name. |
environmentId |
integer |
Release environment ID. |
environmentName |
string |
Release environment name. |
id |
integer |
Release ID. |
name |
string |
Release name. |
StageReference
Stage in pipeline
Name | Type | Description |
---|---|---|
attempt |
integer |
Attempt number of stage |
stageName |
string |
Name of the stage. Maximum supported length for name is 256 character. |
TeamProjectReference
Name | Type | Description |
---|---|---|
abbreviation |
string |
|
defaultTeamImageUrl |
string |
|
description |
string |
|
id |
string |
|
lastUpdateTime |
string |
|
name |
string |
|
revision |
integer |
|
state | ||
url |
string |
|
visibility |
TestCaseResultIdentifier
Reference to a test result.
Name | Type | Description |
---|---|---|
testResultId |
integer |
Test result ID. |
testRunId |
integer |
Test run ID. |
TestFailureDetails
Name | Type | Description |
---|---|---|
count |
integer |
|
testResults |
Reference to a test result. |
TestFailuresAnalysis
Name | Type | Description |
---|---|---|
existingFailures | ||
fixedTests | ||
newFailures | ||
previousContext |
TestOutcome
Name | Type | Description |
---|---|---|
aborted |
string |
Test was aborted. This was not caused by a user gesture, but rather by a framework decision. |
blocked |
string |
Test had it chance for been executed but was not, as ITestElement.IsRunnable == false. |
error |
string |
There was a system error while we were trying to execute a test. |
failed |
string |
Test was executed, but there were issues. Issues may involve exceptions or failed assertions. |
inProgress |
string |
Test is currently executing. Added this for TCM charts |
inconclusive |
string |
Test has completed, but we can't say if it passed or failed. May be used for aborted tests... |
none |
string |
Test has not been completed, or the test type does not report pass/failure. |
notApplicable |
string |
Test is Not Applicable for execution. |
notExecuted |
string |
Test was not executed. This was caused by a user gesture - e.g. user hit stop button. |
notImpacted |
string |
Test is not impacted. Added fot TIA. |
passed |
string |
Test was executed w/o any issues. |
paused |
string |
Test is paused. |
timeout |
string |
The test timed out |
unspecified |
string |
Only used during an update to preserve the existing value. |
warning |
string |
To be used by Run level results. This is not a failure. |
TestResultsContext
Name | Type | Description |
---|---|---|
build |
Reference to a build. |
|
contextType | ||
pipelineReference |
Pipeline reference |
|
release |
Reference to a release. |
TestResultsContextType
Name | Type | Description |
---|---|---|
build |
string |
|
pipeline |
string |
|
release |
string |
TestResultSummary
Name | Type | Description |
---|---|---|
aggregatedResultsAnalysis | ||
noConfigRunsCount |
integer |
|
teamProject | ||
testFailures | ||
testResultsContext | ||
totalRunsCount |
integer |
TestRunOutcome
Name | Type | Description |
---|---|---|
failed |
string |
Run with at-least one failed test. |
notImpacted |
string |
Run with no impacted tests. |
others |
string |
Runs with All tests in other category. |
passed |
string |
Run with zero failed tests and has at least one impacted test |
TestRunState
Name | Type | Description |
---|---|---|
aborted |
string |
Run is stopped and remaining tests have been aborted |
completed |
string |
All tests have completed or been skipped. |
inProgress |
string |
Tests are running. |
needsInvestigation |
string |
Run requires investigation because of a test point failure This is a legacy state and should not be used any more |
notStarted |
string |
The run is still being created. No tests have started yet. |
unspecified |
string |
Only used during an update to preserve the existing value. |
waiting |
string |
Run is currently initializing This is a legacy state and should not be used any more |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for