Hi, I am trying to download the attachments from test run evidence using python script. But I am unable to download it.
I am using the rest api suggested by the xray cloud documents.
https://docs.getxray.app/display/XRAYCLOUD/Attachments+-+REST
Here is the API I used, https://xray.cloud.xpand-it.com/api/v1/attachments/{attachmentId}
But that is always through response code 404.
TestRun results are shown in different link like execution page.
Here is my attachment link,
https://xray.cloud.xpand-it.com/api/internal/attachments/{attachmentId}
Can anyone please help me to download the attachments from above API
The API seems correct, although we advise using version 2 of API:
https://docs.getxray.app/display/XRAYCLOUD/Attachments+-+REST+v2
Before using this request, it is necessary to set up API Keys (https://docs.getxray.app/display/XRAYCLOUD/Global+Settings%3A+API+Keys) and perform authentication (https://docs.getxray.app/display/XRAYCLOUD/Authentication+-+REST) to get a valid token.
Also, we advise making command-line tests using the API to make sure all requests are working as expected.
If you need further help, please contact Xray Support (http://xraysupport.xpand-it.com) so that we can request additional information and investigate further.
Kind regards,
Rogério Paiva [Xray Support Team]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.