I am trying to transfer the execution flow to another step in SOAPUI using groovy. I am using gotoStepByName but the execution is returning back to the next lines of code after execution.
I always assumed runTestStepByName will call the test step .. complete the execution and continue the remaining piece of code.
While gotoTestStepByName will actually go, execute that step and continue executing the next steps without coming back and executing the remaining piece of code.
if (json.size() == 0) {
testRunner.gotoStepByName( "DataSink")
log.info "coming back here again"
}
here I see the flow is actually coming back and printing 'coming back here again...'
How can I just transfer the flow of execution to another step from groovy without executing the rest of code and rest of steps before the transfer step.?
Any ideas?