简体   繁体   中英

How to get Recent Test Case Results by Test Case ID using TFS REST API

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!

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://docs.microsoft.com/en-us/rest/api/azure/devops/test/test%20%20suites/get%20test%20case%20by%20id?view=azure-devops-rest-5.0

https://docs.microsoft.com/en-us/rest/api/azure/devops/test/results/get?view=azure-devops-rest-5.0

Hope it helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM