Forum Discussion
ripplegupta
8 years agoContributor
New2API nmrao I ran into similar problem today, any help
Original Problem in this post is solved in latest versions of ready api but still there is 1 place from where event handler is not running, see problem statement below.
Problem Statement :
Create 1 event handler of type TestRunListner.afterStep in which i am doing something.
In my project there is a groovy test step which run another rest test step named as "API" via below code which does not trigger event handler.
Does Not Work
def runner = testRunner.testCase.testSuite.testCases['TS1TC1'].getTestStepByName("API")
runner.run(testRunner,context)Works
If i have groovy script like below, event handler gets triggered.
testRunner.gotoStepByName("API")
//OR
testRunner.runTestStepByName("API")nmrao
8 years agoCommunity Hero
What's the question?