Hi Tobias,
How do you get the entry_id of a test run in a test plan? I am doing this initially to create the run (that is adding a plan entry):
JSONObject obj_add = (JSONObject) client.sendPost(String.format(String.valueOf(uri.ADD_PlAN_ENTRY),
getTestPlanId()), map);
JSONArray arr = (JSONArray) obj_add.get("runs");
for (int i = 0; i < arr.size(); i++) {
JSONObject jo = (JSONObject) arr.get(i);
testRunId = jo.get("id").toString();
}
and getting the test run id. At this point, TestRail must have automatically created entry id for my run. I need entry_id because I want to use that later while I handle rerunning of my tests. In order to make a call to update_plan_entry via:
JSONObject obj = (JSONObject) client.sendPost(String.format(String.valueOf(uri.UPDATE_PLAN_ENTRY), getTestPlanId()),.....(2nd param) map);
I need that 2nd param as entry id for the run that I created above (in my snippet).
Thanks in advance,
Pratik