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

Add test and results via API when no current tests exist


Just working with the API, I have an existing project that isn’t in Ranorex, it’s a python + selenium test suite. I’m looking to have as part of my jenkins build + test the results and tests pushed into Testrails. As currently nothing exists.

What’s the recommended way, use “add_case” recursively to add all the tests and then “add_results”?

It seems I would then need a way after all the tests are in to tie the Test ID to the outputted JUNIT file so they could be correctly referenced? At that first time entry or subsequent runs now the tests would be in Testrails already.

Just wondering the best approach for this or if there’s a simple solution I’ve missed