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

Add_results returning 400 error


Sending the below to update test run results:

http_response = client.send_post(‘add_results/7663’, {“results”:[{ “test_id”:7663, “status_id”:1, “comment”: “aa”, “elapsed”: “99s”},{ “test_id”:7664, “status_id”:1, “comment”: “aa”, “elapsed”: “99s”}]})

And getting:
APIError: TestRail API returned HTTP 400 (“Field :results cannot be empty but no valid tests or cases found”)

Any idea what I’m missing?



Solved by