Reputation: 844
Is there a way to get the recent test results of test case by Test Case ID utilizing TFS REST API (Azure DevOps Services REST API).
Required field is the Outcome of test case, Duration, Date, Configuration and Run By.
Thanks in advance!
Upvotes: 0
Views: 1805
Reputation: 5294
You can try this api to get a specific test case in a test suite with test case id.
GET https://dev.azure.com/{organization}/{project}/_apis/test/Plans/{planId}/suites/{suiteId}/testcases/{testCaseIds}?api-version=5.0
for getting test result please refer below api
GET https://dev.azure.com/{organization}/{project}/_apis/test/Runs/{runId}/results/{testCaseResultId}?api-version=5.0
for further information, you can refer
https://learn.microsoft.com/en-us/rest/api/azure/devops/test/results/get?view=azure-devops-rest-5.0
Hope it helps.
Upvotes: 1