Unable to import testng results into Xray Cloud using github actions workflow

308 Views Asked by At

The YML file I have used in my project is enter image description here

The error I get in the workflow build

enter image description here

Surefire results path mentioned in both the images is correct but still, I don't understand why it is unable to import the results.

2

There are 2 best solutions below

8
On

From the documentation you have referenced I'm assuming you are using the Cloud version of Xray. If it is the case please make sure you are using the XRAY_CLIENT_ID and XRAY_CLIENT_SECRET in the username/password fields (more info here: https://github.com/mikepenz/xray-action).

5
On

You need to use the latest version of xray-action , as there was a fix on version v2.4.2 to change the Xray Cloud URL that changed meanwhile. You should use the latest version, which currently is v2.4.5. Meanwhile the tutorial on Xray side was also updated.