Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Done
-
R2.3.1
-
None
-
None
Description
How to reproduce:
- configured the Test's workflow status "open" in "Disallow executions of Tests with workflow statuses",
- create a Test Execution and add a generic and a cucumber test
- submit results for the generic and for the cucumber test, using the REST API using the /rest/raven/1.0/import/execution endpoint
- test results are changed; it should return an error message such as "The Test YYYY-xxx is in a non-executable status"
curl -H "Content-Type: application/json" -X POST -u admin:admin --data @manual_result.json http://xray-tst-postgres-v7/rest/raven/1.0/import/execution The Test WOOD-139 is in a non-executable status curl -H "Content-Type: application/json" -X POST -u admin:admin --data @cucumber_result.json http://xray-tst-postgres-v7/rest/raven/1.0/import/execution curl -H "Content-Type: application/json" -X POST -u admin:admin --data @generic_result.json http://xray-tst-postgres-v7/rest/raven/1.0/import/execution {"testExecIssue":{"id":"47889","key":"WOOD-93","self":"http://xray-tst-postgres-v7/rest/api/2/issue/47889"}}
Sample scripts attached.
Endpoints that import/change results should validate this, including:
- all the ones mentioned here: https://confluence.xpand-addons.com/display/XRAY/Import+Execution+Results+-+REST
- all the PUT, POST and DELETE related endpoints of main Test Runs /rest/raven/1.0/api/testrun/ endpoint (see https://confluence.xpand-addons.com/display/XRAY/Test+Runs+-+REST)