sharajan
2 years agoOccasional Contributor
TestRunListner.afterStep event scripts not getting called
I have a loop and one step in the loop is creating a teststep and then calls the created test step
1) Begin Loop
2) Groovy script to create teststep1 and then run the created step
def tCase = testRunner.testCase.testSuite.testCases["Data"]
def tStep = tCase.testSteps[<created test step>]
tStep.run(testRunner,context)
3) End loop
The created step is called, however the scripts within the afterStep event handler code is not getting called.
What needs to be done so that the event handler code is called ?
Note * : In all other test step execution the event handler code is called and works fine.