Expand all | Collapse all

Order of REST API returned values

  • 1.  Order of REST API returned values

    Posted 06-19-2018 08:35
    We are looking at the API for retrieving test case data.  There are a large number of test cases that wil be retrieved 50 at a time with the API.  There doe snot appear to be any filtering supported.  Is the order of the values consistent?


  • 2.  RE: Order of REST API returned values

    Posted 06-20-2018 08:21
    Hi Tom,

    There are several ways that you can approach this. One is with GET /abstractitems, where you first GET /itemtypes, and search for test cases. By default, the test case item type ID is 26 which you can use as a parameter for /abstractitems to get all test cases. You can include other parameters such as the project ID as well. These results in particular are ordered by their sequence which denotes their position on its corresponding project tree. For example, 2.3 is the second item's third child from the root.

    Another is with the test plans endpoint where you can fetch the test cases for each test group in each test plan. With the test runs endpoint you can fetch each test case by ID.

    Let me know if you need anything else.

    Justin Phang
    Developer Support Engineer
    Jama Software
    Portland OR