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

Xray test Report with xPorter

Hello,

I am trying to use xPorter to export the data of our tests but I am facing some difficulties.

 

I am trying to output a table in word that will give me this:Desired_result.pngBut, I am only able to get this table(by using the template under):Actual_result.pngActual_template.png

I am therefore looking to extract the key of the test executions and the keys of the open and close defects.

Thank you

1 answer

0 votes

Hi Antoine, 

Regarding the Test Executions Key, you will need to use the following code:

#{for testExecutions}
    Key: ${TestExecutions[n].Key}
    Test Environments: ${TestExecutions[n].TestEnvironments}
#{end}

And for the Defects, the following:

#{for m=TestRuns[n].ExecutionDefectsCount}
#{if (%{'${TestRuns[n].ExecutionDefects.Status}'.equals('Open')})} 
        Key: ${TestRuns[n].ExecutionDefects[m].Key}
#{end}
#{if (%{'${TestRuns[n].ExecutionDefects.Status}'.equals('Close')})}
Key: ${TestRuns[n].ExecutionDefects[m].Key}
#{end}
#{end} 

If you still encounter issues please create a ticket on our Service Desk.

Best Regards,

Team Xray

Hi José,

Regarding your answer I also tried to generate a template as mentioned by Antoine (in Excel) but it's not working out so far (I am still new to this syntax)- can you maybe help me out on this one? 



image.png

Thank you in advance!

Kind Regards,

Thomas

Suggest an answer

Log in or Sign up to answer
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 ...

474 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