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

How to get section details of a case while getting list of test cases using runid api?


While getting list of test cases in a test run, I need the info regarding the section id / section name each test case belongs to. Is it possible? As of now I am using API -
index.php?/api/v2/get_tests/:run_id to get list of test cases & its status in test run, but this response does not expose the section details which each test case belongs to.

Any ideas or suggestion to get these details using a single testrail API call?


It’s not possible to make it with a single API call. You will need at least 3 calls:

  1. get_cases
  2. get_sections
  3. get_tests
    And also you will need to merge responses from the calls.