Versions Compared

Key

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

...

Expand
title GET /rest/raven/1.0/api/testset/{testSetKey}/testtestrepository/<projectKey>/folders/<folderId>/tests
Panel
borderColor#ccc
borderStylesolid

Return a JSON object with a list of the folders Tests contained in a given folder of the Test Repository.

Request

PATH PARAMETERS
parametertypedescription
projectKeyString

project key

folderIdStringinternal folder Id; the root folder of the Test Repository
Tip
titleExample Request

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

testset/TEST-123/test

testrepository/<projectKey>/folders/<folderId>/tests

Responses

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

The "rank" and "key" will clearly identify the Test and its order within the Test Set. Note that the output may currently return other fields, which may only be available in a explicitly detailed request in a future release.

Returns a JSON object containing the Tests.


Each test will provide some information, including:

  • id: internal Test Id
  • key: Test's issue key
  • summary: Test's summary
  • assignee: Test's issue assignee
  • workflowStatus: Test's workflow status
  • labels: array of all Test's assigned labels
  • components: array of all Test's assigned components
  • testType: Test type (e.g. "Manual", "Cucumber, "Generic")


Code Block
titleExample Output
{
 "tests": [
   {
    "id": 24300, // corresponds to the Test issue id
    "key": "FP-10",
    "summary": "Issue test create inside folder",
    "assignee": "",
    "workflowStatus": "Open"
Code Block
titleExample Output
[
   {
      "id":13602,
    "labels": [],
    "rankcomponents":1 [],
      "keytestType": "CALC-44Manual",
   },
   {
    "selfid": "http://jiraserver/rest/api/2/issue/10401"
   },
   { 24301, // corresponds to the Test issue id
     "key": "idFP-11":13600,
    "summary": "Issue test create inside "rankfolder":2,
      "keyassignee": "CALC-42",
      "selfworkflowStatus": "http://jiraserver/rest/api/2/issue/10402"
   },
   {
  Open",
    "idlabels":13886 [],
      "rankcomponents":3 [],
      "keytestType": "CALC-66Manual",
   },
   "self": "http://jiraserver/rest/api/2/issue/10403"{
    ...
   }
  ],
  "total": 3,
}

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 getting the tests.




...