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


#1

Hi everyone,

I have this code :
Properties properties = new Properties();
properties.setProperty(“TestRailAPI”,clientAPI);
APIClient client = new APIClient(clientAPI + “/index.php?/api/v2/”);
client.setUser(user);
client.setPassword(psw);
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…