You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I would like to export a testplan with a specific environment (IOS or Android) with Xporter so that only the test executions for one specified environment in the Xporter template are displayed.
Is there a away to implement this with a conditional statement in the Xporter template?
Hi @Houssam
It may depend on the type of field that the "environment" is and where it is be used.
However, if it is the Test Environment found in the Xray Test Executions, you may use a conditional block (https://confluence.getxray.app/display/public/XPORTERCLOUD/Conditional+Blocks), and a code similar to this (https://confluence.getxray.app/display/public/XPORTERCLOUD/Exporting+Test+Plan) to get the Test Executions environment.
#{
for
testExecutions}
#{
if
(%{
'${TestExecutions[n].TestEnvironments}'
.equals(
'IOS'
) || '${TestExecutions[n].TestEnvironments}'.equals('Android')})}
This section will only be visible
if
the condition is true
.
#{end}
#{end}
Thank you.
Kind regards,
Rogério Paiva [Xporter Support Team]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.