Uploaded image for project: 'Xray for Jira'
  1. Xray for Jira
  2. XRAY-8684

Iterations with If conditions don't work at the Header

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • None
    • Xray DC V7.1.1
    • Document Generator
    • None
    • Xray 2023 S13
    • OK

    Description

      Description
      Iterations with If conditions don't work at the Header

      Pre-conditions

      How to reproduce

      1. Create a template that has an iteration at the header:
        #{for testruns}
        #{if (%{'${TestRuns[n].A}'.equals(‘Yes’)})}
        ${Key} 
        #{end} 
        #{end}
        
      1. add the same code at the body of template

      Actual result/Attachments
      The IF is reporting a false value

      (example created from my side)

      Expected result
      No false value appear

      Environment

      • <environments>

      Attachments

        Issue Links

          Activity

            People

              dpca Diamantino Campos
              lpss Luis Sousa
              Votes:
              2 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: