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

Managing test IDs with Junit


I’m just wondering the best approach to manage test IDs with JUnit results. In our situation, I want to post my results, which are JUnit based into TestRails. Just wondering the nicest ways of keeping the IDs matched.

For instance, am I going to do this:
1 - Get all my tests via get_tests for a certain project
2 - Loop these results to find the test name that matches the JUnit test name
3 - Post the result with the found ID using add_result

Or is there a more succinct way?