Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

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 (, and a code similar to this ( 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.

Thank you.
Kind regards,
Rogério Paiva [Xporter Support Team]

Suggest an answer

Log in or Sign up to answer
Site Admin
Community showcase
Published in Apps & Integrations

Apps for Confluence you won't want to miss: RSVP for September's Appy Hours

Calling all collaborators and Confluence users! Our Appy Hours event on September 29th features 4 presenters demoing functionality to superpower Confluence. Don't miss learning about these apps i...

117 views 0 9
Read article

Atlassian Community Events