changes.mady.by.user Sergio Freire
Saved on Feb 27, 2018
changes.mady.by.user Unknown User (fspe)
...
Returns a JSON object with a list of the Tests contained in a given folder of the Test Repository.
This endpoint supports pagination.
projectKey
project key
folderId
allDescendants
include all descendants (i.e. all child Tests); "false", by default
page
limit
curl -H "Content-Type: application/json" -X GET -u admin:admin http://yourserver/rest/raven/1.0/api/testrepository/<projectKey>/folders/<folderId>/tests
curl -H "Content-Type: application/json" -X GET -u admin:admin http://yourserver//rest/raven/1.0/api/testrepository/<projectKey>/folders/<folderId>/tests?allDescendants=true
200 OK : text/plain : Successful. Returns a JSON object containing the Tests.
Each test will provide some information, including:
id
key
summary
rank
workflowStatus
components
testType
{ "tests": [ { "id": 24300, "key": "FP-10", "summary": "Issue test create inside folder", "assignee": "", "rank": 1, "workflowStatus": "Open", "labels": [], "components": [], "testType": "Manual", }, { "id": 24301, "key": "FP-11", "summary": "Issue test create inside folder", "assignee": "", "rank": 2, "workflowStatus": "Open", "labels": [], "components": [], "testType": "Manual", }, { ... } ], "total": 3, }
{ "tests": [ { "id": 24300, "key": "FP-10", "summary": "Issue test create inside folder", "assignee": "", "rank": 1, "workflowStatus": "Open", "labels": [], "components": [], "testType": "Manual", }, { "id": 24301, "key": "FP-11", "summary": "Issue test create inside folder", "assignee": "", "rank": 1, "workflowStatus": "Open", "labels": [], "components": [], "testType": "Manual", }, { ... } ], "total": 3, }
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 tests.
Add/remove tests to/from the given Test Repository folder. Returns error messages, if there are any.
{ "add": [ "CALC-33", "CALC-75" ], "remove": [ "CALC-25", "CALC-45" ] }
Responses
200 OK : text/plain : Successful. Return error messages, if there are any.
["Issue with key CALC-33 not found or is not of type Test."]
401 UNAUTHORIZED : text/plain : The Xray for JIRA license is not valid.
500 INTERNAL SERVER ERROR : text/plain : An internal error occurred associating the tests.