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

"get_results_for_run returning ERROR "run_id is not a valid test run"


Hi All,

I am new to testrail and I was reading to get all the results for a run use “get_results_got_run”, but I am getting error. I am suing as below. I am using dotnet API and Testrail version is “v5.3.0.3603”.

JObject c = (JObject)client.SendGet(“get_results_for_run/694”);
ex.Message “TestRail API returned HTTP 400 (“Field :run_id is not a valid test run.”)” string

I am giving correct ID " Sprint S17-07 Release ("

Can anyone help me what is the mistake and how to get result of all tests from a run?



Recheck the run id as the error message is specifically that it can’t find the run id.


it is run ID i checked it i can’t and now its working not i am need to cast it to JArray and get the all results.

thanks for the reply.


Hi Girija,

Thanks for the update! Glad you were able to get it working. Just let us know if you have any additional questions.