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

Export test runs via API


#1

Hi,

I think that enabling export of test runs via API can be very beneficial. Here’s the use case.
In my company, we decided to create a manual test procedure in which the entire engineering team will participate in exploring the entire application.
Many test cases were created in multiple test suites, all in a single project.
I automated a few parts of the process - generating test runs from all test suites using UI script/TR API and submitting them back from excel using Google sheets gs.
The missing link is the ability to export the test runs to excel. This I still need to do manually.

Thanks, Assaf


#2

Hello Assaf,

Thanks for your posting. You can look into using the API methods to generate your own CSV/Excel files and the API methods would return all necessary information to do so. But I’ve also added your suggestion to our feature request list, thanks!

Regards,
Tobias


#3

Thanks Tobias.

Obviously you’re right :)… one can parse the response and create whatever format he likes.

Assaf


#4

You are welcome, Assaf! :slight_smile:

Regards,
Tobias


#5

This is probably not related directly to TR but how do I write all the selected fields into a local file?

Thanks in advance :slight_smile:


#6

Hello Assaf,

Thanks for your reply. This depends on the programming language you use and the format you would like to save the test cases in. The general idea would be to use the response from TestRail’s API to store your test cases in the CSV/Excel format you would like to use.

Regards,
Tobias