liche
12 years agoOccasional Contributor
Scripting : goto End of the step/next step intantly
Hi all,
I'm trying to find a way to go to the end of the groovy scripting step or to next step.
For example:
some scripting
I used :
testRunner.gotoStepByName( "nameofNextStep" ) => but this starts nextstep at the end the execution of the current step
testRunner.runTestStepByName( "nameofNextStep" ) => but this starts nextstep in parallel to the current step
If you have any idea, thank you in advance for you help.
PS:the aim is to manage exception (catch it, log and end the step to go to the next one)
I'm trying to find a way to go to the end of the groovy scripting step or to next step.
For example:
some scripting
if (var1 = "KO") {
//....
//Exit the current step and go to next step immediatly
}
I used :
testRunner.gotoStepByName( "nameofNextStep" ) => but this starts nextstep at the end the execution of the current step
testRunner.runTestStepByName( "nameofNextStep" ) => but this starts nextstep in parallel to the current step
If you have any idea, thank you in advance for you help.
PS:the aim is to manage exception (catch it, log and end the step to go to the next one)