changes.mady.by.user Sergio Freire
Saved on Dec 04, 2019
changes.mady.by.user Diamantino Campos
Saved on Apr 17, 2020
...
Update the test run. The fields that can be updated on the test run are: status, assignee, comment, defects, evidences, examples and steps.
id
- ID of the test run.
{ "status": "FAIL", "assignee": "john.doe", "comment": "new comment", "defects": { "add": [ "test-114", "test-115", "test-116" ] }, "evidences": { "add": [{ "filename": "test1.txt", "contentType": "plain/text", "data": "(base64 encoding...)" }, { "filename": "test2.txt", "contentType": "plain/text", "data": "(base64 encoding...)" }], "remove": ["254", "443"] }, "examples": [{ "id": "1379", "status": "TODO" }] }
{ "status": "FAIL", "comment": "new comment", "defects": { "add": [ "test-114", "test-115", "test-116" ] }, "evidences": { "add": [{ "filename": "test1.txt", "contentType": "plain/text", "data": "(base64 encoding...)" }, { "filename": "test2.txt", "contentType": "plain/text", "data": "(base64 encoding...)" }], "remove": ["254", "443"] }, "steps": [{ "id": "731", "status": "TODO", "comment": "the comment 1" }, { "id": "730", "status": "PASS", "defects": { "add": [ "test-114", "test-115", "test-116", "appId=a364a9c7-9ac0-3183-9175-353c1331692a&issue=SDP-5" ] }, "evidences": { "add": [{ "filename": "test1.txt", "contentType": "plain/text", "data": "(base64 encoding...)" }, { "filename": "test2.txt", "contentType": "plain/text", "data": "(base64 encoding...)" }], "remove": ["274", "543"] } }] }
{ "status": "FAIL", "defects": {"add":["appId=a364a9c7-9ac0-3183-9175-353c1331692a&issue=SDP-5"], "remove":["DCW-9", "appId=a364a9c7-9ac0-3183-9175-353c1331692a&issue=SDP-1"]}, "evidences": [], "steps": [ { "id": 43, "status": "PASS", "comment": "", "defects": {"add":[], "remove":["DCW-9"]}, "evidences": [] }, { "id": 44, "status": "FAIL", "defects": {}, "evidences": [] }, { "id": 45, "status": "FAIL", "defects": {}, "evidences": [] } ] }
Responses
200 OK : text/plain : Successful.
400 BAD_REQUEST : text/plain : Returns the error.
401 UNAUTHORIZED : text/plain : The Xray license is not valid.
500 INTERNAL SERVER ERROR : text/plain : An internal error occurred updating the test run.