Hi folks,
This will be a long-red 🙈🙈
This is kind of a tricky experiment (at least for me) I am trying to build. I would like to build kind of a DevOps pipeline especially the testing part and also automating the test result reporting back in Jira (Xray), Jira project is connected to my Github repo. Here comes my plan:
Here comes the problem:
I was able to import the test-result.xml via cURL which generates a standard Test Execution. Even it pays into my coverage of the UserStory (test cases are mapped correctly) I would like to have the test execution as a Sub Test Execution within the UserStory as it is automatically "linked" to the Story and for better traceability.
My questions:
Thanks in advance for any helpful feedback.
Best
Stefan
HELL YEAH!!! solved it 💪
I left out A4J to create sub test execution. everything done now in the github action.
@Stefan Salzl Would you mind to share an example of the curl you used? I have tried something like this but have not succed yet
https://OURDOMAIN/rest/raven/rest/raven/2.0/import/execution/junit?projectKey=OURPROJECT
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sure. My curl call looks as follows (keep in mind I´m working in cloud environment):
curl -H "Content-Type: text/xml" -X POST \
-H "Authorization: Bearer ${{ $XRAY_TOKEN }}" \
--data @"test-results.xml" https://xray.cloud.getxray.app/api/v2/import/execution/junit?testExecKey=${key}
I got aware that your call consits of "/rest/raven" twice. As far as I got it it´s only /rest/raven/2.0/...
In case this still doesn´t solve the problem try to use as described in following link with v1:
https://docs.getxray.app/display/XRAY/Import+Execution+Results+-+REST#ImportExecutionResultsREST-JUnitXMLresults
Hope I could give some helpful input.
Looking forward to your feedback.
Best
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.