Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Xray DC V7.6.1
-
None
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
- Go to a Test Plan, add a Test and execute it in a new Test Execution.
- Execute it and set a final status so it gets the Started On and Finished On dates
- 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
- relates to
-
XRAYCLOUD-6782 Unable to export Test Run Started On and Finished On from Test Plans Test Execution
- Open