changes.mady.by.user Unknown User (hslb)
Saved on May 10, 2018
changes.mady.by.user Sergio Freire
Saved on Nov 05, 2018
...
Return a json with the test step statuses available in Xray sorted by rank.
Request
200 OK : text/plain : Successful. Return ajsona json.
[ { "id":311 1, "indexrank": 1, "name": "PASS", "stepdescription":{ "The test step has passed." "rawtestStatusId":"Enter the1 following operation on screen" }, { "renderedid":"<p>Enter the following operation on screen</p>" }, "data":{ 10, "raw":"(1 + 1) * 2", "rendered":"<p>(1 + 1) * 2</p>" }, "result":{ "raw":"The expected result is *4*", "rendered":"<p>The expected result is <b>4</b></p>" }, "attachments":[ ] }, { "id":312, "index":2, "step":{ "raw":"test", "rendered":"<p>test</p>" }, "data":{ "raw":"test data", "rendered":"<p>test data</p>" }, "result":{ "raw":"expected data", "rendered":"<p>expected data</p>" }, "attachments":[ { "id":141, "fileName":"text.txt", "fileSize":"0,0 kB", "created":"Today 3:54 PM", "author":"admin", "fileURL":"http://YOURJIRA/jira/plugins/servlet/raven/attachment/141/text.txt" } ] } "rank": 10, "name": "SKIP", "description": "The test step has been skipped." "testStatusId": 1 } ... ]
401 UNAUTHORIZED : text/plain : The Xray for JIRA license is not valid.
500 INTERNAL SERVER ERROR : text/plain : An internal error occurred getting the test steps.
Update a specific test step.
testKey
- key of the test.
{ "step": "example step", "data": "example data", "result": "example result", "attachments": { "add": [{ "data": "gsddfgdsfg...(base64) ", "filename": "example1.txt", "contentType": "plain/text" }, { "data": "gsddfgdsfg...(base64) ", "filename": "example2.txt", "contentType": "plain/text" }], "remove": [ 141, 105 ] } }
Responses
200 OK : text/plain : Successful.
400 BAD_REQUEST : text/plain : Returns the error.
500 INTERNAL SERVER ERROR : text/plain : An internal error occurred updating the test step.
Remove a test step from a test.
500 INTERNAL SERVER ERROR : text/plain : An internal error occurred deleting the test step.
Return a json with all the test step attachments.
- ID of the test step.
200 OK : text/plain : Successful. Return a json.
[ { "id":141, "fileName":"text.txt", "fileSize":"8,0 kB", "created":"Today 3:54 PM", "author":"admin", "fileURL":"http://YOURJIRA/jira/plugins/servlet/raven/attachment/141/TEST1.txt" }, { "id":147, "fileName":"text.txt", "fileSize":"3,0 kB", "created":"Today 3:54 PM", "author":"admin", "fileURL":"http://YOURJIRA/jira/plugins/servlet/raven/attachment/147/TEST2.txt" } ]
500 INTERNAL SERVER ERROR : text/plain : An internal error occurred getting the test step attachments.
Remove an attachment from a test step.
500 INTERNAL SERVER ERROR : text/plain : An internal error occurred removing the test step attachment.
.