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

Is there any way to add an attachment in xml report?

Edited

Hi! Does Xray provide any possibility to add an attachment to the execution result in XML? I can create my own implementation of a reporter, but I don't know the valid format of XML for Xray API

I think I can do something like this:

<testsuites disabled="0" errors="0" failures="0" tests="1" time="31.39">
<testsuite name="test" timestamp="2021-03-15T21:20:27" hostname="localhost" time="31.39"
errors="0" tests="1" skipped="0" disabled="0" failures="0">
<testcase classname="test" name="test"
time="15.092">
<attachments>
<attachment>
<name>screen1.png</name>
<description>hi</description>
<rawcontent>...base64...</rawcontent>
</attachment>
</attachments>
</testcase>
</testsuite>
</testsuites>

 But I don't sure what the format is valid?

1 answer

Hi @Alexander Chako 

It is possible depending on the report format used, and it will be necessary to convert the attached file into Base64 format.

Please check the examples in our documentation here.

If you need further help, please contact the Xray Support (http://xraysupport.xpand-it.com) so that we can request additional information and help you 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 ...

124 views 1 9
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