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.
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
Hello Sergio,
Your answer helped me a lot, that what I was looking for, thank you.
Best regards,
Samy Hamitouche.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.