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

Not able to get run id for test rail cloud


#1

hi tobias,
The run_id specified for testrail server
1-passed
2-blocked
3-untested
4-retest
5-failed

but when I use the same run id for testrail cloud I am getting an error : TestRail API returned HTTP 400(“Field :run_id is not a valid test run.”)

so I assume that there must be some different run_id for different execution status

Can you please let me know whether my assumption is correct? and what are the correct run_ids for testrail cloud.

thanks and regards,
shiva


#2

Hi Shiva,

The numbers you have specified is the status_id of cases in a test run [http://docs.gurock.com/testrail-api2/reference-statuses]

The run_id is found on the test run page, here:

so in this case the run_id is 23.

Hope that helps,

dani


#3

Hello Shiva,

The run ID is the numeric part of the R### identifier in the UI as Dani mentioned (thanks!). This ID is also returned via the API by the add_run API call as part of the response.

I hope this helps!

Cheers,
Tobias


#4

thanks dani and tobias !!!


#5

You are welcome, Shiva :slight_smile:

Cheers,
Tobia