Forum Discussion

gordonb's avatar
gordonb
Occasional Contributor
11 years ago

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()

1 Reply

  • Hi,

    I have opened an enhancement request of SOAP-2935 for this. For now, please use the workaround of disabling the other test steps.


    Regards,
    Marcus
    SmartBear Support