Open Jacobvu84 opened 1 year ago
TestOutcome testOutcome = getLastOutcome(); String testId = getTestCaseId(testOutcome); JSONArray testcases = new JSONArray(); testcases.add(testId); JSONObject addTestCase = new JSONObject() .element("add",testcases); String testExecId = getTestExecution(); SerenityRest.given() .header("Authorization", JIRA_TOKEN) .contentType(ContentType.JSON) .pathParam("testExecId", testExecId) .body(addTestCase) .post(JIRA_BASE+"/rest/raven/1.0/api/testexec/{testExecId}/test");