Forum Discussion

sharajan's avatar
sharajan
Occasional Contributor
2 years 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>]

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.

  • nmrao's avatar
    nmrao
    Champion Level 3

    sharajan 

    What type of step that was created?

    Are you using Open Source edition?