Seeking for an API which returns the entire test case execution history (Run Count) in particular Suite in Azure Test Plan

Praveen Kumar 0 Reputation points
2023-12-13T09:39:49.67+00:00

In search of API, which returns the entire execution history of test case within a specific suite ID in Azure Test Plan.

We have found an API from Microsoft, which returns the entire test cases count in a particular Plan ID and Suite ID.

 

https://learn.microsoft.com/en-us/rest/api/azure/devops/test/test-suites/list?view=azure-devops-rest-7.1&tabs=HTTP

 

GET https://dev.azure.com/{organization}/{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase?api-version=5.0-preview.2

 

 

In the same way, we have found another API from Microsoft, which returns only the last run or last execution details.

 

https://learn.microsoft.com/en-us/rest/api/azure/devops/test/points/list?view=azure-devops-rest-7.1&tabs=HTTP

GET https://dev.azure.com/{organization}/{project}/_apis/test/Plans/{planId}/Suites/{suiteId}/points?witFields={witFields}&configurationId={configurationId}&testCaseId={testCaseId}&testPointIds={testPointIds}&includePointDetails={includePointDetails}&api-version=7.1-preview.2

 

In the UI as shown in the Screenshot, we can able to see in the Test Case Results the entire test case run history.

Api

But, while trying from the above-mentioned API, we are only getting the one test run details, like last run details.

Looking for an API which can provide the entire test case execution history as we can see in screenshot.

Community Center | Not monitored
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.