How to get test order from rest api?


I am using api calls like:

I would like to know get the order of the test as described in this documentation:

Order: "Shows the sequence in which the tests were run. Click the header above this column to sort by the test order number."

I couldn't guess the field name that would provide me that information; I tried timestamp and order.

Thank you

Comment actions Permalink

Hello Tam,

It's not possible to get tests order via REST API, however tests are returned sorted by the order of the execution. Also you can download tests in .csv format from the Tests tab, it contains the Order# column.

Comment actions Permalink

Hi Alina,

I am not seeing the return tests in order of execution. I am looking at both the xml and json responses.  My server version is 9.1.6 (build 37459).

Comment actions Permalink

Hi Tam,

Sorry for delay. Could you please provide an example: a screenshot of the tests order in TeamCity UI and the xml response?


Please sign in to leave a comment.