Forum Discussion

ssbsts's avatar
ssbsts
Occasional Contributor
9 years ago

How to exit entire TestSuite on failure

In each Test Case there is an options menu that allows you to set a flag for "Abort on Error".  I interpret this to mean that if any test step fails in the Test Case any subsequent test steps are skipped and the Test Case is aborted.  Is there a similar option for aborting a Test Suite on error?  Aborting a Project on error?  I have yet to find this option.  If TC1 in my TS fails I don't want to waste time trying to then execute TC2, TC3, and so on when I know the results will not be valid.

 

Thanks

1 Reply

  • Radford's avatar
    Radford
    Super Contributor

    The WsdlTestSuite class has the methods setAbortOnError and setFailOnErrors, while I have not tried this myself you could look at calling one or both these methods (to suit your requirements) via Groovy in your test suite Setup Script. Again the WsdlProject class has the same two methods.

     

    Not sure if these will produce the behaviour you require, but might be worth investigating.