Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleGET /rest/raven/1.0/api/settings/teststepstatuses
Panel
borderColor#ccc
borderStylesolid

Return a json with the test step statuses available in Xray sorted by rank.

Request

Tip
titleExample Request
curl -H "Content-Type: application/json" -X GET -u admin:admin http://yourserver/rest/raven/1.0/api/settings/teststepstatuses

Responses

200 OK : text/plain : Successful. Return ajsona json.

Code Block
titleExample Output
[
   {
      "id":311 1,
      "indexrank": 1,
   "name": "PASS",
   "stepdescription":{
 "The test step has  passed."
   "rawtestStatusId":"Enter the1 following operation on screen"
 },
 {
     "id": 10,
   "renderedrank":"<p>Enter the10,
 following operation on screen</p>"
      },
   "name": "SKIP",
   "datadescription":{
 "The test step has been skipped."
   "rawtestStatusId":"(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"
         }
      ]
   }}
 ...
]

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.

...