Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
5.0.2, 5.0.2-j6
-
None
-
R5.2.0 Sprint 3
-
-
Description
On nested iterations of Xray mappings, the fields to retrieve aren't well split by iteration level.
The first level of iteration will load the correct values, but the next levels of iteration will always load the fields from the first level.
Example:
${Description} #{for testruns} A - ${TestRuns[n].Key} #{for r=TestRuns[n].TestStepsCount} B - ${TestRuns[n].TestSteps[r].Key} #{for dc=TestRuns[n].TestSteps[r].DefectsCount} C - ${TestRuns[n].TestSteps[r].Defects[dc].Key} ${TestRuns[n].TestSteps[r].Defects[dc].Description} #{end} #{end} #{end}
In the above example, the retrieved fields for iteration is as follows:
context | fields rertrieved | expected fields retrieved |
current issue being exporter | Description; TestRuns[n].Key; TestRuns[n].TestSteps[r].Key; TestRuns[n].TestSteps[r].Defects[dc].Key; TestRuns[n].TestSteps[r].Defects[dc].Description | Description; TestRuns[n].Key; TestRuns[n].TestSteps[r].Key; TestRuns[n].TestSteps[r].Defects[dc].Key; TestRuns[n].TestSteps[r].Defects[dc].Description |
each TestRun | Key; TestSteps[r].Key; TestSteps[r].Defects[dc].Key; TestSteps[r].Defects[dc].Description | Key; TestSteps[r].Key; TestSteps[r].Defects[dc].Key; TestSteps[r].Defects[dc].Description |
each TestStep | Key; TestSteps[r].Key; TestSteps[r].Defects[dc].Key; TestSteps[r].Defects[dc].Description | Key; Defects[dc].Key; Defects[dc].Description |
each Defect | Key; TestSteps[r].Key; TestSteps[r].Defects[dc].Key; TestSteps[r].Defects[dc].Description | Key; Description |