Forum Discussion

sharajan's avatar
Occasional Contributor
12 months ago

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>],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.