tabbykat
2 years agoNew Contributor
Scripting goto next step
I am using SoapUI 5.7. In my test steps, I use a groovy script to conditionally jump past a step as it will fail if running the suite locally. I can skip to another step by name, but I am concerned if someone were to rename a step or rearrange them it would break things. As such, how can I just check what step index I am currently on and jump past the next step (current +2)?
testrunner.gotoStepByName()
testrunner.gotoStep()
//--unable to get the index from the step class
context.getCurrentStep()