Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.
 

Any API to get results for all test cases from a specific test run?


#1

I have hundreds test cases in a test suite and create a test run.

In order to get the test results back from this test run from API, I have to query each of the test either using http://docs.gurock.com/testrail-api2/reference-results#get_results or http://docs.gurock.com/testrail-api2/reference-results#get_results_for_case, that means hundreds of HTTP calls.

Is there a better way for me to get all the results from a specific test run back in single API call?


#2

Hello,

Thanks for your posting. You can use get_tests to get the latest status and some additional details for all tests in a test run. To get the results, you would currently need to call get_results or get_results_for_case for each test/case. It’s already planned to add a more efficient method and I’ve just added another vote to this request.

Thanks again and please let me know in case you have any further questions.

Regards,
Tobias