Flow Control \ If Verdict step timeouts if requires verdict from a step under different parent step
Environment:
Windows 10, 64-bit
OpenTAP 9.15.0
Steps to reproduce:
- Run attached TapPlan IfVerdict_parent_bug.TapPlan
- Error should occur on If Verdict step with log line "Error running "Repeat \ If Verdict": Wait timed out."
Actual result:
Testplan aborted with error in If Verdict
Expected result:
Testplan to complete with 3 repeats
Other remarks:
Same TapPlan is working as expected on TAP versions 9.14.0
If the 'If Verdict' step is moved under the same parent ('Repeat (1)') then it works as expected. Similarly issue is fixed if the 'If Verdict' step is changed to require the verdict from 'Repeat (1)'.
Issue possible caused because target step's parent has cleared out stepRuns list and set StepThread to null before the Verdict Output is required.