changes.mady.by.user Nuno Santos
Saved on Jul 27, 2021
Saved on Oct 29, 2021
...
Import the execution results present in query variable "executionResults".
Request
{ "info" : { "projectKeyproject" : "DEMO", "summary" : "Execution of automated tests for release v1.3", "description" : "This execution is automatically created when importing execution results from an external source", "version" : "v1.3", "user" : "admin", "revision" : "1.0.42134", "startDate" : "2014-08-30T11:47:35+01:00", "finishDate" : "2014-08-30T11:53:00+01:00", "testPlanKey" : "DEMO-100", "testEnvironments": ["iOS", "Android"] }, "tests" : [ { "testKey" : "DEMO-6", "start" : "2014-08-30T11:47:35+01:00", "finish" : "2014-08-30T11:50:56+01:00", "comment" : "Successful execution", "status" : "PASS" }, { "testKey" : "DEMO-7", "start" : "2014-08-30T11:51:00+01:00", "finish" : "2014-08-30T11:52:30+01:00", "comment" : "Execution failed. Example #5 FAIL.", "status" : "FAIL", "evidences" : [ { "data": "iVBORw0KGgoAAAANSUhEUgAABkIAAAO9CAYAAADezXv6AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAEn(...base64 file enconding)", "filename": "image21.jpg", "contentType": "image/jpeg" } ], "examples" : [ "PASS", "PASS", "PASS", "PASS", "FAIL" ], "steps": [ { "status": "PASS", "comment": "Coment on Test Step Result 1", "evidences" : [ { "data": "iVBORw0KGgoAAAANSUhEUgAABkIAAAO9CAYAAADezXv6AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAEn(...base64 file enconding)", "filename": "image22.jpg", "contentType": "image/jpeg" } ], "actualResult": "Actual result on Test Step 1" } ], "defects" : [ "DEMO-10", "DEMO-11" ] } ] }
{ "testExecutionKey": "DEMO-1206", "info" : { "summary" : "Execution of automated tests for release v1.3", "description" : "This execution is automatically created when importing execution results from an external source", "version" : "v1.3", "user" : "admin", "revision" : "1.0.42134", "startDate" : "2014-08-30T11:47:35+01:00", "finishDate" : "2014-08-30T11:53:00+01:00", "testPlanKey" : "DEMO-100", "testEnvironments": ["iOS", "Android"] }, "tests" : [ { "testKey" : "DEMO-6", "start" : "2014-08-30T11:47:35+01:00", "finish" : "2014-08-30T11:50:56+01:00", "comment" : "Successful execution", "status" : "PASS" } ] }
{ "testExecutionKey" : "DEMO-1206", "tests" : [ { "status": "FAIL", "steps": [ { "status": "PASS" }, { "status": "FAIL" } ], "testInfo": { "summary": "Create new test", "testType": "Manual", "projectKey": "DEMO", "steps": [ { "action": "Step action 1", "data": "Data 1", "result": "Step result 1" }, { "action": "Step action 2", "data": "Data 2", "result": "Step result 2" } ] } } ] }
{ "testExecutionKey" : "DEMO-1206", "tests" : [ { "status": "FAIL", "steps": [ { "status": "PASS" }, { "status": "FAIL" } ], "testKey": "DEMO-1207", "testInfo": { "summary": "Update existing test", "testType": "Manual", "projectKey": "DEMO", "steps": [ { "action": "Step action 1", "data": "Data 1", "result": "Step result 1" }, { "action": "Step action 2", "data": "Data 2", "result": "Step result 2" } ] } } ] }
200 OK : application/json : Successful. The results where successfully imported to Jira.
{ "testExecIssue": { "id": "10000", "key": "DEMO-123", "self": "http://www.example.com/jira/rest/api/2/issue/10000" } }
400 BAD_REQUEST : application/json : No execution results where provided.
401 UNAUTHORIZED : application/json : The Xray license is not valid.
500 INTERNAL SERVER ERROR : application/json : An internal error occurred when importing execution results.