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

API get_tests return only IDs


This is my first post so bear with me. I’m using the TestRail API and was curious about something. I ran the get_tests command and it returns all information about the tests in a run. However I am only interested in the test ids in the information and not all the other stuff. Is there a way to have get_tests only return the IDs or only return specific information. I’ve tried reading through the support documentation but was unable to find anything to answer my question. Thanks.



Thanks for your posting. The IDs are also included in the get_tests response and you can simply ignore the other fields. It’s also planned to return the case selection as part of get_run in the future but this is not currently included in the response and you can use get_tests for this instead.

I hope this helps!