changes.mady.by.user David Duarte
Saved on Aug 09, 2019
...
Request
QUERY PARAMETERS
key of the project where the tests and pre-conditions are going to be created.
multipart/form-data:
"file" : a MultipartFormParam containing a ".feature" file or a ZIP file to import.
curl -H "Content-Type: multipart/form-data" -u admin:admin -F "file=@1.feature" http://yourserver/rest/raven/1.0/import/feature?projectKey=DEMODEV
curl -H "Content-Type: multipart/form-data" -u admin:admin -F "file=@features.zip" http://yourserver/rest/raven/1.0/import/feature?projectKey=DEMODEV
curl -H "Content-Type: multipart/form-data" -u admin:admin -F "file=@features.zip" -F "testInfo=testInfo.json" -F "precondInfopreCondInfo=precondInfo.json" http://yourserver/rest/raven/1.0/import/feature?projectKey=DEMODEV
Responses
200 OK : application/octet-stream : Successful. The cucumber features where successfully imported to Jira.
[ { "id":"14400", "key":"DEV-915", "self":"http://localhost:8727/rest/api/2/issue/14400", "issueType": { "id": "10100", "name": "Test" } }, { "id":"14401", "key":"DEV-916", "self":"http://localhost:8727/rest/api/2/issue/14401", "issueType": { "id": "10103", "name": "Pre-Condition" } } ]
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 when generating the feature file(s).