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

Xray nested iteration have incorrect fields to retrieve

    XporterXMLWordPrintable

Details

    • R5.2.0 Sprint 3
    • Hide
      JIRA7:
      Word:testTemplate72
      Show
      JIRA7: Word:testTemplate72
    • OK

    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

      Attachments

        Activity

          People

            sdrg sdrg
            mfda mfda
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 3 days
                3d
                Remaining:
                Time Spent - 1 day, 3 hours, 20 minutes Remaining Estimate - 1 day, 4 hours, 40 minutes
                1d 4h 40m
                Logged:
                Time Spent - 1 day, 3 hours, 20 minutes Remaining Estimate - 1 day, 4 hours, 40 minutes
                1d 3h 20m