Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
None
-
None
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}