Hi, recently I tried to import my cucumber test result to jira Xray but getting the error
curl -u USERNAME:PASSWORD -F info=@jiraInfo.json -F result=@cucumber_report.json https://myCompanyJiraServer/rest/raven/1.0/import/execution/cucumber/multipart
but return below:
curl: (55) Send failure: Connection was reset
or
curl: (56) Send failure: Connection was reset
I have tested another curl command:
curl -u USERNAME:PASSWORD -k -v https://myCompanyJiraServer/jira/rest/api/2/issue/TICKET-1
and it works
Hello @ChrisNgai
Since you omitted cURL's -X parameter to declare the connection type as POST, the error isn't surprising.
You may want to review cURL's online documentation again.
curl -u USERNAME:PASSWORD -X POST -F info=@jiraInfo.json -F result=@cucumber_report.json https://myCompanyJiraServer/rest/raven/1.0/import/execution/cucumber/multipart
Result return :
curl: (56) Send failure: Connection was reset
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Given that you're submitting a multipart data request, it's not clear how you think the connection will work if you omit the -H parameter and don't declare "Content-Type: multipart/form-data" in the header.
I think I'll leave you with this now.
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.