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

Do all test cases needs to be present in Test Run & Results section to update their Pass or Fail Status

#1

,
Hi All,

Do all test cases needs to be present in Test Run & Results section to update their Pass or Fail Status when updating using API ? If yes, then : how do i get the id of all the test cases present in Test Run & Result section and then pass it on to my selenium script to those test cases only ?

0 Likes

#2

Hello Vinod,

Thank you for posting! Yes, to add a result for a test that has been executed, the test would need to be included in a test run or test plan entry.

You can get the ID of all tests that are included in a test run by using the ‘get_tests’ method and specifying the test run ID. You would then need to process the API response to retrieve the test IDs to pass these to your selenium script. You can find more information about the get_tests API method on our website here:

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

I hope this helps!

Regards,
John

0 Likes