I'm using TestNG to automate tests. We need to import the tests output results to Xray, so I'm trying to upload the testng-results.xml file as specified here , using the API at api/v1/import/execution/testng?projectKey=SomeKey. When I attach the file as binary, the response I get has status code 503 and the following body:
{ "error": "Server Error - Error creating tests in Jira with the following error(s): Client / Program is required." }
When the file is attached as a field in the form-data , the response has a status code 400 and following body:
{ "error": "Missing data in the testng results import request" }
I'm looking at the docs, but cannot find any of the errors mentioned. What parameters may I be missing here?
I'm having similar issue while importing testng results
We do have support documentation for guidance on this topic: https://confluence.xpand-it.com/display/public/XRAY/Import+Execution+Results+-+REST#ImportExecutionResultsREST-TestNGXMLresultsMultipart
If you still have questions, please reach out to our support team at our Service Desk.
Best Regards,
Team Xray
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.