Hello guys,
i have a nightly selenium test running in jenkins. It exports cucumber feature files from Jira/Xray, runs the test and imports the xrayresultimport.json via REST-API back to Jira/Xray. Currently this creates me a new test execution nightly, where all executed tests are documented as passed or failed.
What i want is, instead of creating a new test execution it should update an already existing test execution night by night and document the tests inside of the test execution as passed or failed.
Here is my xrayresultimport.json
{
"fields": {
"project": {
"key": "MPPITO"
},
"summary": "Test Execution for Cucumber results (Generated by job: <build-tag>) via Pipeline",
"description": "Test Execution for Cucumber results In Jenkins\n(Job Cucumber Report: <build-url>/cucumber-html-reports/overview-features.html) \n Build Job URL: <build-url>",
"customfield_10928": [
"<browser>","Jenkins"
],
"issuetype": {
"id": "10402"
}
}
} Here is my rest-api call:
curl -u $ACCESS_KEY_QQCONT1 -F info=@build/xrayresultimport.json -F result=@target/cucumber.json https://.../jira/rest/raven/1.0/import/execution/cucumber/multipart'
Is this possible or not and how could this work?
Thanks & regards
Max