Forum Discussion
M_McDonald
16 years agoSuper Contributor
How about this:
Given a test case like that in the image, put this code in the 'Select TestCase' step:
This will execute the selected step, then resume execution at the End Select step, skipping the steps in between.
Given a test case like that in the image, put this code in the 'Select TestCase' step:
def selectedStep
// do some logic to figure out step to be exectuted, say Step 2
selectedStep = "Step 2"
testRunner.runTestStepByName(selectedStep)
testRunner.gotoStepByName("End Select")
This will execute the selected step, then resume execution at the End Select step, skipping the steps in between.