changes.mady.by.user Sergio Freire
Saved on Nov 05, 2018
changes.mady.by.user Unknown User (sbgs)
Saved on Oct 22, 2019
...
Return a json that represents the test step.
id
- id of the test run.
200 OK : text/plain : Successful. Return a json that represents the test step.
{ "id":729, "index":1, "step":{ "raw":"ssaf", "rendered":"<p>ssaf</p>" }, "data":{ "raw":"asdf", "rendered":"<p>asdf</p>" }, "result":{ "raw":"asdfasdf", "rendered":"<p>asdfasdf</p>" }, "attachments":[ ], "status":"EXECUTING", "comment":{ "raw":"asdasdasdasdasd", "rendered":"<p>asdasdasdasdasd</p>" }, "defects":[ { "id":15018, "key":"CALC-115", "summary":"Ad-hoc execution for CALC-93", "status":"Open" } ], "evidences":[ { "id":216, "fileName":"1 (24).feature", "fileSize":"0,4 kB", "created":"Wednesday 5:09 PM", "author":"admin", "fileURL": "http://YOURJIRA/jira/plugins/servlet/raven/attachment/253/1 (24).feature" } ], "actualResult":{ "raw":"Actual result", "rendered":"<p>Actual result</p>" } }
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 getting the test run.
Update the test run step. The fields that can be updated on the test run are: status, comment, defects and evidences.
Defects and evidences mentioned directly by the respective attributes are always added to the ones that may exist at the step.
{ "id":"729", "status":"PASS", "comment":"The comment", "defects":[ "TEST-114", "TEST-115", "TEST-116" ], "evidences":[ { "filename":"test.txt", "contentType":"plain/text", "data":"(BASE64 encoding)" } ], "actualResult":"The actual result" }
Responses
200 OK : text/plain : Successful.
500 INTERNAL SERVER ERROR : text/plain : An internal error occurred updating the test run step.