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

I would like to export a testplan with a specific environment (IOS or Android)

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?

1 answer

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]

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Apps & Integrations

Send an Email or Publish to Confluence - What should you do with your release notes?

Background When you hear the words ‘Release notes’, almost always you think of an unsolicited email from a software vendor. But I am here to tell you that from our data, sending release notes via E...

57 views 0 1
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