Looking for a DevOps REST API to return a list of Test Runs for a specifed Test Case ID

Copper Contributor

I am writing a reporting tool that uses the DevOps REST APIs to pull out test runs and screenshots from DevOps Test Plans and puts them in a Word document.

 

I need to find an API that will give me a list of all the Test Runs for a given Test Case. However all I have been able to find so far is the API below, which returns all Test Runs for the entire Test Plan. Although this is workable, it requires a lot of additional time and effort to sift through the results and match each one to the corresponding test case and will get ever slower as more and more test runs are added.

 

https://docs.microsoft.com/en-us/rest/api/azure/devops/test/runs/list?view=azure-devops-rest-6.0

 

Many thanks in advance for any help given.

0 Replies