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

Aravind 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]
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
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