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

Inputting data in New Test Run automation


#1

Hello,

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);
client1.sendPost(“add_result_for_case/1/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?

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

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


#2

Nevermind. I GET it!