Quantcast
Channel: New board topics in SmartBear Community
Viewing all articles
Browse latest Browse all 20755

Using GotoStepbyname from Event TestRunListener.afterStep

$
0
0

 

I am trying to use conditional go to from TestRunListener.afterStep but control is not transfered to respective step.Same stament in test case groovy works.i think i am missing somehting with variabales

 

i see this event is invoked with testrunner,context,testStepResult,log variables.

 

Intention is to write the logs in db if scenario fails.

 

 

testRunner.gotoStepByName("Step1")

                                             or 

context.getTestRunner().gotoStepByName("Step1")

 


Viewing all articles
Browse latest Browse all 20755

Trending Articles