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

Failed cases with comment


#1

Hello,

Hope you are well.

Is there a way in which I can export all the failed cases for a given Test Suite or Milestone along with the tester’s comments?


#2

Hi Bruno,

Thanks for your post! We would just recommend exporting these via CSV/Excel, and while you can’t filter by status, you can always edit the file afterwards (e.g. with Excel or another spreadsheet management application) to remove any tests that you don’t want to include. Alternatively, you can also use the get_tests and get_results_for_run API methods and include the status_id request filter to specify any status and have these printed out for you (e.g. /index.php?/api/v2/get_results_for_run/1&status_id=5). This approach would only work on the test run level and not for milestones or suites, but it allows you to filter by status. You can learn more about these methods on our website here:

http://docs.gurock.com/testrail-api2/reference-results#get_results_for_run
http://docs.gurock.com/testrail-api2/reference-tests#get_tests

Hope this helps!

Regards,
Marco