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

Unable to export Test Run Started On and Finished On with Date Format from Test Plans Test Execution

    XporterXMLWordPrintable

Details

    • UNCOVERED

    Description

      Description
      Unable to export the Test Run Started On and Finished On from a Test Plan Test Execution with the Date format

      How to reproduce

      1. Go to a Test Plan, add a Test and execute it in a new Test Execution.
      2. Execute it and set a final status so it gets the Started On and Finished On dates
      3. Export the Test Plan Store template

      Actual result/Attachments
      The fields from the Test Run, Started On and Finished On are empty.

      Expected result
      IT should export the Started On and Finished On values

      Workaround
      There is a possible workaround for this issue replacing the template mappings for the Started and Finished On dates. This involves placing the date format mapping inside a javascript block.
      Here´s the code:

      #{if (%{'${TestExecutions[n].TestRuns[a].Started On}'.equals('')})}
      - 
      #{end}
      #{if (%{!'${TestExecutions[n].TestRuns[a].Started On}’.equals('')})}
      %{‘${dateformat(“dd-MM-yyyy HH:mm:ss”):TestExecutions[n].TestRuns[a].Started On}’}
      #{end}
      
      #{if (%{'${TestExecutions[n].TestRuns[a].Finished On}'.equals('')})}
      - 
      #{end}
      #{if (%{!'${TestExecutions[n].TestRuns[a].Finished On}’.equals('')})}
      %{‘${dateformat(“dd-MM-yyyy HH:mm:ss”):TestExecutions[n].TestRuns[a].Finished On}’}
      #{end} 
      

      Attachments

        Issue Links

          Activity

            People

              afro Andre Fernandes Rodrigues
              mrap Mario Peixoto
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: