Share via


Action Results - List

Gets the action results for an iteration in a test result.

GET https://dev.azure.com/{organization}/{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Iterations/{iterationId}/actionresults/{actionPath}?api-version=6.0

URI Parameters

Name In Required Type Description
iterationId
path True

integer (int32)

ID of the iteration that contains the actions.

organization
path True

string

The name of the Azure DevOps organization.

project
path True

string

Project ID or project name

runId
path True

integer (int32)

ID of the test run that contains the result.

testCaseResultId
path True

integer (int32)

ID of the test result that contains the iterations.

actionPath
path

string

Path of a specific action, used to get just that action.

api-version
query True

string

Version of the API to use. This should be set to '6.0' to use this version of the api.

Responses

Name Type Description
200 OK

TestActionResultModel[]

successful operation

Security

oauth2

Type: oauth2
Flow: accessCode
Authorization URL: https://app.vssps.visualstudio.com/oauth2/authorize&response_type=Assertion
Token URL: https://app.vssps.visualstudio.com/oauth2/token?client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer

Scopes

Name Description
vso.test Grants the ability to read test plans, cases, results and other test management related artifacts.

Examples

Sample request

GET https://dev.azure.com/fabrikam/fabrikam-fiber-tfvc/_apis/test/Runs/results/Results/{testCaseResultId}/Iterations/{iterationId}/actionresults/00000002?api-version=6.0

Sample response

{
  "count": 1,
  "value": [
    {
      "actionPath": "00000002",
      "iterationId": 1,
      "url": "https://dev.azure.com/fabrikam/fabrikam-fiber-tfvc/_apis/test/Runs/4/Results/100000/Iterations/1/ActionResults?actionPath=00000002",
      "outcome": "Passed",
      "startedDate": "2014-05-04T13:00:38Z",
      "completedDate": "2014-05-04T13:00:38Z"
    }
  ]
}

Definitions

Name Description
SharedStepModel

Reference to shared step workitem.

TestActionResultModel

Represents a test step result.

SharedStepModel

Reference to shared step workitem.

Name Type Description
id

integer (int32)

WorkItem shared step ID.

revision

integer (int32)

Shared step workitem revision.

TestActionResultModel

Represents a test step result.

Name Type Description
actionPath

string

Path identifier test step in test case workitem.

comment

string

Comment in result.

completedDate

string (date-time)

Time when execution completed.

durationInMs

number (double)

Duration of execution.

errorMessage

string

Error message in result.

iterationId

integer (int32)

Iteration ID of test action result.

outcome

string

Test outcome of result.

sharedStepModel

SharedStepModel

Reference to shared step workitem.

startedDate

string (date-time)

Time when execution started.

stepIdentifier

string

This is step Id of test case. For shared step, it is step Id of shared step in test case workitem; step Id in shared step. Example: TestCase workitem has two steps: 1) Normal step with Id = 1 2) Shared Step with Id = 2. Inside shared step: a) Normal Step with Id = 1 Value for StepIdentifier for First step: "1" Second step: "2;1"

url

string

Url of test action result.