Uploaded image for project: 'Xray for Jira'
  1. Xray for Jira
  2. XRAY-10778

Document Generator not exporting Test Steps from a Test Run

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Xray DC - v7.11.0
    • Continuous Delivery
    • Document Generator
    • None
    • Any Jira

      Any DB

    • UNCOVERED

    Description

      Description
      There is a situation where Test Steps on Test Runs are not being exported.

      Checking the app logs, you'll likely see this kind of ERROR occurrences

      ERROR admin     [c.x.r.service.impl.DefaultTestRunService] Error getting existing step results for test run with id 52
      

      Pre-conditions
      There should be Test Runs that are partially initialized i.e with started date as empty but somehow with mementos initialized.

      How to mock a partially initialized Test Run
      1) We can mock a partially initialized Test Run by initializing it and then directly updating its started date to null

      UPDATE "AO_8B1069_TEST_RUN"
      SET "START_DATE" = NULL
      WHERE "ID" = <TEST_RUN_ID>
      

      2) Confirm the Test Run has started date as null but the memento was created

      SELECT "START_DATE", "TEST_MEMENTO_ID"
      FROM "AO_8B1069_TEST_RUN"
      WHERE "TEST_EXEC_ISSUE" = <TEST_EXEC_ISSUE_ID>
      

      Also, make sure to upload the attached template into the templates administration page: XrayTestPlanAdvWithCoverPageNew - DC - Apr2024-1 (1).docx

      How to reproduce

      1. Create a Test with at least a step and enter data for 'Action', 'Data' and 'Expected Result' in each step
      2. Create a Test Plan and add the Test
      3. Within the Test Plan, create a Test Execution containing the Test
      4. Execute the Test
      5. Follow the steps on How to mock a partially initialized Test Run
      6. Go to the Test Plan page and export the template

      Actual result/Attachments
      Test Steps are not exported

      Expected result

      Test Steps should be exported

      Version

      • 7.11.0

      Workaround
      Open the Test Run page in order to set a Started Date

      Attachments

        Activity

          People

            Unassigned Unassigned
            dmdu David Duarte
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: