Uploaded image for project: 'Xporter for Jira'
  1. Xporter for Jira
  2. XPORTER-1541

Error parsing fields within several iterations

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • Release 5.8.0
    • Xporter Engine
    • None
    • UNCOVERED

    Description

      When you have an If statement and you check a field inside several iterations, Xporter uses the last index of the several iterations.
      Example:

      #{for n=JQLIssuesCount|clause=project=DEMO}
      #{for l=JQLIssues[n].LinksCount}
      ${JQLIssues[n].Links[l].Key} -	${JQLIssues[n].Links[l].Summary}
      #{for e=JQLIssuesCount|clause=issuekey in testTestExecutions("${JQLIssues[n].Links[l].Key}")}
      #{for r=JQLIssues[e].TestRunsCount}
      #{if (%{'${JQLIssues[e].TestRuns[r].TestSteps[s].Status}'.equals('FAIL')})}
      {color:#d04437}FAIL{color}
      #{end}
      #{if (%{'${JQLIssues[e].TestRuns[r].TestSteps[s].Status}'.equals('PASS')})}
      {color:#14892c}PASS{color}
      #{end}
      #{if (%{'${JQLIssues[e].TestRuns[r].TestSteps[s].Status}'.equals('TODO')})}
      {color:#cccccc}TODO{color}
      #{end}
      #{if (%{'${JQLIssues[e].TestRuns[r].TestSteps[s].Status}'.equals('EXECUTING')})}
      {color:#f6c342}EXECUTING{color}
      #{end}
      #{if (%{'${JQLIssues[e].TestRuns[r].TestSteps[s].Status}'.equals('ABORTED')})}
      *ABORTED*
      #{end}
      *Test Status Value:* ${JQLIssues[e].TestRuns[r].TestSteps[s].Status}
      #{end}
      #{end}
      #{end}
      #{end}
      

      Attachments

        Activity

          People

            rmbr Rui Rodrigues
            hjfr Hugo Rodrigues [X] (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: