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

Get test status for a time period via the api


#1

Hi,

when querying a test run via the api, one get the information about the current status of passed, failed and untested tests.

Is there any way to retrieve this information for a snapshot of a given time ? Like “what was the status yesterday” (like JIRAs -1d filter) ? It seems that one can only filter with created_before and created_after, but this returns me the tests in that time, but not there status at this time.

Thanks


#2

Hi!

That’s not directly supported but it would be possible to emulate this with TestRail’s get_results_for_run API method. To find the statistics/status of a test run at an arbitrary point in time, you can use this list of results and keep track of the overall run status as you go through this list (in reverse order, so oldest first).

I hope this helps!

Cheers,
Tobias