changes.mady.by.user Diamantino Campos
Saved on Jul 06, 2018
changes.mady.by.user Sergio Freire
Saved on Nov 05, 2018
...
Return ajsonwith a list of the test associated with the test plan. Note that this endpoint may be paginated.
testPlanKey
- key of the test plan.
limit
- limits the number of results per page. Should be greater or equal to 0 and lower or equal to the maximum set in the Global Configuration.
page
200 OK : text/plain : Successful. Return a json.
[ { "id":12215, "key":"DEMO-12", "latestStatus":"PASS" }, { "id":13207, "key":"DEMO-29", "latestStatus":"TODO" }, { "id":13602, "key":"DEMO-44", "latestStatus":"Fail" } ]
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.
Associate tests with the test plan. Return error messages if there are any.
{ "add": [ "CALC-14", "CALC-29" ], "remove": [ "CALC-15", "CALC-50" ] }
Responses
200 OK : text/plain : Successful. Returns error messages if there are any.
["Test or Test Set with key CALC-29 not found or is not Type Test or Test Set"]
500 INTERNAL SERVER ERROR : text/plain : An internal error occurred associating the tests.
Removetestfrom Remove test from the test plan.
200 OK : text/plain : Successful.
500 INTERNAL SERVER ERROR : text/plain : An internal error occurred removing the test .
Return ajsonwith a list of the test executions associated with the test plan.
[ { "id":12215, "key":"DEMO-12", "summary":"Test Execution for Test Plan Test-123", "self":"http://localhost:5980/testJira/rest/api/2/issue/12215", "environments" : [ "IOS", "Android" ] }, { "id":12315, "key":"DEMO-15", "summary":"Test Execution for Test Plan Test-123", "self":"http://localhost:5980/testJira/rest/api/2/issue/12315", "environments" : [ "IOS", "Android" ] } ]
500 INTERNAL SERVER ERROR : text/plain : An internal error occurred getting the teststest executions.
Associate test executions with the test plan. Return error messages, if there are any.
["Issue with key CALC-29 not found or is not of type Test Execution"]
500 INTERNAL SERVER ERROR : text/plain : An internal error occurred associating the teststest executions.
Remove test execution from the test plan.
500 INTERNAL SERVER ERROR : text/plain : An internal error occurred removing the test execution.