Hi Guys im trying to create a java post request to create a test run on test rail, however it deosnt seem to be working heres my code:
public JSONObject AddTestRunTest() { JSONObject jsonobject = new JSONObject(); APIClient client = new APIClient("https://testsport.testrail.com/index.php?/api/v2/add_run/24"); client.setUser("for@stdec.com"); client.setPassword("Password1");
Map<String, Integer> myMap = new HashMap<>();
myMap.put("suite_id", 829);
myMap.put("assignedto_id", 1);
Map<String, String> myMap1 = new HashMap<>();
myMap1.put("name", "Regression Test");
Map<String, Boolean> myMap2 = new HashMap<>();
myMap2.put("include_all", true);
ArrayList<String> arr = new ArrayList<String>();
arr.add("17082");
arr.add("17085");
arr.add("17086");
return jsonobject;
}
The testrail documentation is here im looking for the add run http://docs.gurock.com/testrail-api2/reference-runs Any help here how to make this actually work , is completing but nothing is happening. Im a tester but struggling with this pat of the Java
Aucun commentaire:
Enregistrer un commentaire