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

Automatically update test case id result from cucumber[java api] to a test run


Hi everyone,

I have this code :
Properties properties = new Properties();
APIClient client = new APIClient(clientAPI + “/index.php?/api/v2/”);
Map data = new HashMap();
data.put(status, 3);
data.put(“comment”, "Test Executed - using java api ");
JSONObject r = (JSONObject) client.sendPost(“add_result/3287”, data);

but for some reason reads from anothe class and not from API client class…