Hello,
I'am trying to import my cucumber execution results into XRay via. the REST API / cucumber-multipart and want to change the summary of the new created test execution in Jira.
What i do:
1. Export feature files from Xray into Java Project
2. Execute my tests
3. result.json is generated from Cucumber
4. I generate a info.json for multipart to edit the summary of the test execution
5. HTTP post request with Content-Type: multipart / Formdata
But the only response i get from Xray is:
Responsecode 400: Bad Request - "error": "The result file is required".
I don't understand why i get this response, i deliever the result file?
- My result.json looks like a standard cucumber result Json File
- My info.json looks like:
{
"fields": {
"project": {
"id": "14335"
},
"summary": "Cucumber Test Execution",
"components" : [{
}]
}
}
- First i tried to send the post request from my java code than i also tried to use postman for testing purpose
- Infos about my HTTP POST Request:
POST /rest/raven/1.0/import/execution/cucumber/multipart HTTP/1.1
Host: xxxx
Authorization: Basic c2...==
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
Cookie: xxxx
Content-Length: 444
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="resultFile"; filename="resultJira.json"
Content-Type: application/json
(data)
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="infoFile"; filename="resultInfo.json"
Content-Type: application/json
(data)
----WebKitFormBoundary7MA4YWxkTrZu0gW
Can somebody help me with this?
Thanks in advance,
Greetings Simon
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.