Uploaded image for project: 'Xray for Jira Cloud'
  1. Xray for Jira Cloud
  2. XRAYCLOUD-5950

When removing a precondition from a test that has parameters and that has been executed, the export errors out

    XporterXMLWordPrintable

Details

    Description

      Description
      When removing a precondition from a test that has parameters and that has been executed, the export errors out

      How to reproduce
      Have a test with parameters
      Attach a precondition to it
      Create a test run
      Run it
      Delete the precondition
      Try to export it using the following code:

      #{for testExecutions}
          Execution Key: ${TestExecutions[n].Key}
          #{for a=TestExecutions[n].TestRunsCount}
              Run Key: ${TestExecutions[n].TestRuns[a].Key}
              Preconditions:
              #{if (%{'${TestExecutions[n].TestRuns[a].PreConditionsCount}' > 0})}
                  #{for c=TestExecutions[n].TestRuns[a].PreConditionsCount}
                      Precondition Key: ${TestExecutions[n].TestRuns[a].PreConditions[c].Key}
                  #{end}
              #{end}
              #{if (%{!('${TestExecutions[n].TestRuns[a].PreConditionsCount}' > 0)})}
                  No preconditions
              #{end}
          #{end}
      #{end}
      

      Actual result/Attachments
      Export errors out

      Expected result
      template should be generated

      Attachments

        Activity

          People

            pjsm Paulo Mendes
            joao.silva João Silva
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: