Forums

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

Post attachment to TestRun

samy hamitouche
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!
September 4, 2020

Hello,

I'm using Curl to POST attachment to a Test Execution by using this documentation : https://docs.getxray.app/display/XRAY/Test+Runs+-+REST#TestRunsREST-ExecutionEvidence

 

So I'm using a command like this : curl -H "Content-Type: application/json" -X POST -u admin:admin --data @Example.json http://yourserver / rest/raven/1.0/api/testrun/2/attachment

 

It is working well, and when I do a Curl GET on the TestRun I can see that my "evidences" have been posted correctly.

The fact is when I'm going with my browser on the Test Execution page, I couldn't see any attachment at the bottom of the page. 

I would like to know how can I upload an attachment with RestAPI and show it on Test Execution Web Page when I'm logging to Xray ?

 

Thank you in advance,

 

Best Regards.

1 answer

1 accepted

1 vote
Answer accepted
Sergio Freire - Xblend
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 7, 2020

Hi @samy hamitouche ,

evidence are added and seen in the Test Run itself and not on the Test Execution issue.

You need to go to the execution details of that Test Run, as mentioned here: https://docs.getxray.app/display/XRAY/Test+Runs#TestRuns-ExecuteTest .

Then you'll be redirected to the execution screen/details of that Test Run and there you can see an Evidence section at the top as mentioned here: https://docs.getxray.app/display/XRAY/Execute+Tests#ExecuteTests-Overview

 

Regards,

Sergio

 

=======================================

A personal blog on testing, Agile, and software development: https://sergiofreire.com

Follow me on Twitter: @darktelecom

samy hamitouche
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!
September 8, 2020

Hello Sergio,

Your answer helped me a lot, that what I was looking for, thank you.

 

Best regards,

Samy Hamitouche.

Like Sergio Freire - Xblend likes this

Suggest an answer

Log in or Sign up to answer