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

Create a test run to include all test cases from suite


#1

Hi Tobias,

Could you please help to let me know if we’re able to create test run automatically with any language to include all test cases from suite and pass this test run to each test cases for running automation scripts, then upload result?

Thanks,
Son Phan


#2

Hi Son Phan,

Thanks for your posting. Yes, you can add new test runs with the add_run API method:

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

This creates a new test run with all cases by default (with include_all = true). The ID of the new run is returned as part of the API response and can be used to submit test results (e.g. via add_result_for_case and a case ID):

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

I hope this helps!

Cheers,
Tobias


#3

Thanks Tobias. I could make it successfully last night.

Regards,
Son Phan


#4

Hi Son Phan,

That’s great to hear and please let me know in case we can help with anything else :slight_smile:

Cheers,
Tobias


#5

Will do Tobias if i have any issues

Cheers,
Son


#6

Thanks, Son!

Cheers,
Tobias