Forums

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

When i am trying to import the TEST NG test results through API getting the below error

Aravind
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!
July 7, 2020

When i am trying to import the TEST NG test results through API getting the below error

The file extension doesnt belong to that endpoint.

 

Response r = given().auth().preemptive().basic(username, pwd).when()

.contentType("multipart/form-data")

.multiPart(new File("result.xml"))

.post("https://myserver/rest/raven/1.0/import/execution/testng?testExecKey=Key");

 

what did i miss here?

 

 

 

1 answer

0 votes
José Domingues [Xray]
Atlassian Partner
July 16, 2020

Hi @Aravind

Please follow the Curl command that is indicated in this link: https://confluence.xpand-it.com/display/XRAYCLOUD/Import+Execution+Results+-+REST#ImportExecutionResultsREST-TestNGXMLresults.

If you are still not able to import the file we will need additional information to deep analyze the case, so please contact us through our Service Desk.

Best Regards,

Team Xray 

Suggest an answer

Log in or Sign up to answer