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

Inputting data in New Test Run automation



I want to create a new run and pass the status ID. When I create a new run the status ID is not passed.

Map data = new HashMap();
data.put(“status_id”, 1)

d = (JSONObject) client.sendPost(“add_run/1/”, data);

It is because the add_result_for_case is still pointing to the old test run and the new run has a new run ID. Is there a way I could have the data populate in the new run automatically?

add_result_for_case/"new run ID "/“new case ID”,data

Maybe something like runID + 1 since it increments by one.


Nevermind. I GET it!