Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Xray - Fail to import testng-results.xml with error: Client / Program is required

Carlos Leguizamon
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 19, 2020

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?

2 answers

0 votes
Meghana Mallineni January 5, 2023

I'm having similar issue while importing testng results Screen Shot 2023-01-05 at 6.25.00 PM.png

0 votes
José Domingues [Xray]
Atlassian Partner
June 5, 2020

Hi @Carlos Leguizamon

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

Suggest an answer

Log in or Sign up to answer