gordonb
11 years agoOccasional Contributor
testRunner.fail() for all levels
My project has a test suite and 3 test cases. If the 1st test case has a groovy step with testRunner.fail(), then the 2nd and 3rd test cases continue to run after. (A work around would be to set all the test cases to disabled - I have seen code on the net for this).
To make it logical, perhaps there could be something like
testRunner.fail()
testRunner.cancel()
testRunner.testCase.fail()
testRunner.testCase.cancel()
testRunner.testCase.testSuite.fail()
testRunner.testCase.testSuite.cancel()
testRunner.testCase.testSuite.project.fail()
testRunner.testCase.testSuite.project.cancel()
To make it logical, perhaps there could be something like
testRunner.fail()
testRunner.cancel()
testRunner.testCase.fail()
testRunner.testCase.cancel()
testRunner.testCase.testSuite.fail()
testRunner.testCase.testSuite.cancel()
testRunner.testCase.testSuite.project.fail()
testRunner.testCase.testSuite.project.cancel()