Forum Discussion
ripplegupta
Contributor
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
7 years agoChampion Level 3
What's the question?
Related Content
- 10 months ago
- 5 years ago