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?