This is my understanding :
- Test cases are independent entities which are reusable
- Test plan has many test runs
- Test runs has many test cases included in it.
- We can add results(pass, fail, etc) for individual test cases under test runs.
Now coming to the problem,
here 1325 is the run id and 947100 is testcase id.
Currently It has got 1 test case, if i click on it, i’ll be rediredcted to url2.
Map data = new HashMap();
data.put(“status_id”, new Integer(1));
data.put(“comment”, “This test worked fine!”);
JSONObject r = (JSONObject) client.sendPost(“add_result_for_case/1325/947100”, data);
But my test case is not getting updated.
I am getting this response:
Exception in thread “main” com.gurock.APIException: TestRail API returned HTTP 400(“Field :case_id is not a valid test case.”)
How to update a testcase under a testrun ?