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

Importint test reports pie chart information into excel


#1

Is there an API to get the test reports pie chart information especially Tested and Untested test cases information and Percentage information?

I am working on to gather the test reports informatoin of various instances and put up a compartison chart for various test reports. Any help would be appreciated.

Thanks
Raja


#2

Hello Raja,

Thanks for your posting! Yes, you can use the get_run and/or get_plan API methods to get the pie chart statistics via the API. Both API methods return the passed, failed, blocked etc. counts for the entire run/plan and you can use these numbers to generate the same statistics TestRail presents as part of the pie chart:

http://docs.gurock.com/testrail-api2/reference-runs
http://docs.gurock.com/testrail-api2/reference-plans

I hope this helps!

Regards,
Tobias


#3

Thanks Tobias for your prompt reply.


#4

You are welcome, Raja!

Regards,
Tobias