Forum Discussion

gordonb's avatar
gordonb
Occasional Contributor
10 years ago

testRunner.fail("reason")

My project has a test suite and 3 test cases. The 1st test case checks for a file, if it is not found it runs testRunner.fail("reason"). If the file does not exist I would like the test to stop. However the 2nd and 3rd test cases run after the groovy step with testRunner.fail("reason").

Is there any way to stop the whole test from running by using a groovy statement?

If not, I would like to add it as a feature request.