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")