Scenario:
I want to upload the test results to Xray's test plan ticket. For that, I am using `@xray-app/playwright-junit-reporter` to generate junit reporter XML compatible with Xray.
Now, I want to import this `results.xml` file to test plan on my Jira project.
I am using this curl command for that:
curl -i -H "Content-Type: application/xml" -X POST -H "Authorization: Bearer <My_Token>" --data @"test-results\results.xml" "<My-Jira-Project-Base-Url>/rest/raven/2.0/import/execution/junit?projectKey=<MyProjectKey>&testPlanKey=<MyTestPlanKey>"
We have Jira Datacenter here. Let me know if there's any issue request command here. I am confused with Project ID here as well. I have a numeric id as well of the project. Should I use the projectKey which we see on the URL? eg: if the URL is:
`https://<JIRA-BASE-URL>/browse/<PROJECT-NAME>`
then I am using PROJECT-NAME as my project key.
Welcome to the community!
We see 2 possible causes for the issue at hand:
I hope it helps and keep us posted! Please let us know which error was presented if it does not work.
Best, Francisco
@Francisco Fonseca _Xray_ thank you for looking into this. `results.xml` contains content in XML, not sure if changing content type to multipart/form-data will help here.
And I am on my office's Jira network, so we don't have a username and password for jira, we do so login.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried with "Content-Type: multipart/form-data", got this error:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The best way to assist you further would be through our support channels here.
Best, Francisco
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.