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

Bdd results onto test rail


#1

Hi

Can anyone give me ideas on how to implement the test rail API to reflect the results onto test rail?
How would i get the title of the scenario and the result so that I can use the API to write the results?

Thanks in advance !!


#2

Hi!

Thanks for your posting. You would use TestRail’s API to submit test result, in particular the add_result and add_result_for_case API methods:

http://docs.gurock.com/testrail-api2/reference-results

The recommended approach is to store the case IDs together with your automated test and then use these IDs to submit results via add_result_for_case (or the bulk variant add_results_for_cases). We also have a blog posting about automation that explains how other teams use TestRail and integrate it with their automated tests:

https://blog.gurock.com/testrail-test-automation-test-management/

I hope this helps!

Cheers,
Tobias