Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to download attachments from test run evidence?

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

1 answer

Hi @Vignesh Sundar 

 

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]

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Published in Apps & Integrations

🍻🍂Apptoberfest Update: Upcoming Virtual Events 🎉

Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...

471 views 5 18
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you