stores80
6 years agoOccasional Contributor
Cancelling a Test Run
Hi,
I currently have a test step which calls another test case. In the called test case, I have a groovy script with a conditional if statement. If a certain condition is met I want to cancel the current execution. I've added the below two lines;
testRunner.cancel("Condition not met");
return
What I find however, is that control is passed back to the test case in which the call was made from, and it continues to execute the remaining test steps within the case. The only way around this is to use testRunner.fail(""), but this is not really what I want.
Please can anyone advise. Many thanks.