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

Add_result_for_case - 400 bad request

I’m getting back ‘400 bad request’ when using the unmodified TestRailClient project. Is something wrong with this submission?

CommandResult commandResult = testRailClient.AddResultForCase(71, 76888, ResultStatus.Failed);


Results in something like what you see below. Everything looks correct to me.
url: “?/api/v2/add_result_for_case/71/76888”

“status_id”: 5,
“comment”: “none”,
“version”: “1.0”,
“elapsed”: “1d 2h 0m 30s”

Uhg. Got the Result id mixed up with the Case id. Problem solved.

1 Like