Details
-
Bug
-
Status: Open
-
Medium
-
Resolution: Unresolved
-
None
-
None
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