Forum Discussion
Beno_Iskratel
16 years agoFrequent Contributor
hi,
let say that i have groovy with 200 lines.
if i use testRunner.cancel( "I'm getting tired" ) at line 50, the rest of 150 lines will still execute.
what shall i use to stop test case and also stop groovy from further execution?
stoping groovy at certain position is in fact eveyrthing what i need.
"assert false" will do the job, but it's not the best solution.
regards,
beno
let say that i have groovy with 200 lines.
if i use testRunner.cancel( "I'm getting tired" ) at line 50, the rest of 150 lines will still execute.
what shall i use to stop test case and also stop groovy from further execution?
stoping groovy at certain position is in fact eveyrthing what i need.
"assert false" will do the job, but it's not the best solution.

regards,
beno