Forum Discussion
Defender
16 years agoContributor
Hmmm, Bob, what's about this (I use JavaScript but I sure it is easy to perform this in Groovy)?
testStatus = true;
.......
if (something)
testStatus = false;
........
if not (testStatus)
testRunner.fail()
So I use testRunner.fail only as final lines of the code.
testStatus = true;
.......
if (something)
testStatus = false;
........
if not (testStatus)
testRunner.fail()
So I use testRunner.fail only as final lines of the code.