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

Get_test API returns HTTP 400 error


#1

Hello,

I am getting HTTP 400 Bad Request at attempt to run get_test request. The test is available through the TestRail UI: /index.php?/cases/view/168921 but if I try to access it via API: /index.php?/api/v2/get_test/168921 I am getting an error:

{
  "error": "Field :test_id is not a valid test."
}

Any ideas on why is this happening?

Thanks,
Dmitry.


#2

Oh, it should be get_case, but not get_test