Reputation: 63
Is there a way to get all the testcase steps data via Azure DevOps API?
Upvotes: 2
Views: 2519
Reputation: 1295
The Azure DevOps api has endpoints for returning test runs, results and cases. The api is wrapped in a PowerShell module called AzurePipelinesPS that has functions like
The following command will return a list of all your test cases in a suite.
Get-APTestSuiteList -Session 'youSessionName'
Be sure to setup a session locally with New-APSession
when first installing the module. You can find the session documentation here.
Upvotes: 0
Reputation: 63
I was able to find the solution:
GET https://{host}/{collection}/{project}/_apis/testplan/Plans/{plan id}/Suites/{suite id}/TestCase/{testcase id}
Upvotes: 1
Reputation: 222522
You need to use this particular Endpoing,
POST https://dev.azure.com/{organization}/{project}/_apis/test/Runs/{runId}/results?api-version=5.0
and access TestActionResultModel
Upvotes: 0