changes.mady.by.user Sergio Freire
Saved on Nov 05, 2018
Saved on Aug 30, 2023
...
Update a specific test step.
Request
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.
401 UNAUTHORIZED : text/plain : The Xray for JIRA license is not valid.
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.