I am trying to create execution using endpoint /rest/raven/1.0/import/execution/cucumber , but it gives error "Incorrect Response status code. Expected 200 but Actual: 400
{"error":"Error assembling issue data: project is required"}".
I tried passing ?projectKey=<key> as param , but I get the same issue both through Java code and postman, please help to resolve.
Hi @Prabha
Not sure but I think you have to use the multipart version.
POST /rest/raven/1.0/import/execution/cucumber/multipart
Example:
curl -u username:password -F info=@test-execution-info.json -F result=@cucumber-results.json
test-execution-info is
{
"fields": {
"project": {
"key": "PROJKEY"
},
"summary": "Automated Test Execution for Cucumber",
"issuetype": {
"name": "Test Execution"
}
}
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.