Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Xray DC - v7.11.0
-
None
-
Any Jira
Any DB
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
- Create a Test with at least a step and enter data for 'Action', 'Data' and 'Expected Result' in each step
- Create a Test Plan and add the Test
- Within the Test Plan, create a Test Execution containing the Test
- Execute the Test
- Follow the steps on How to mock a partially initialized Test Run
- 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