Forum Discussion

Nisha_Shah's avatar
Nisha_Shah
Occasional Contributor
14 years ago

[Resolved] How to stop a TestSuite when a test case fails

Hi,
I am using soapUI-Pro 4.5.0 and would like to stop the test suite from running if a test case fails. How can I do this? This is analogous to stopping a test case if a test step fails, which is available from Test Case Options ("Fail on Error").

I found an old post that's related, but I can't find any option to stop a test suite if the test case fails
(viewtopic.php?f=5&t=1395&p=5256&hilit=stop+test+suite#p5256 ).

Any help is appreciated.

Thanks,
Nisha

5 Replies

  • Hello,

    There is no setting in soapUI which could help you. What you could do is to add teardown or setup script which will disable/enable next test cases based on next test cases.
    This script should be in every test case. It is a bit of work.

    robert
    /Smartbear
  • You can stop a test case when it is failed.

    Just go to the settings (the setting button is available on Test Suit / Test Case page) and select the option "Abort on Error".

    If alternatively, you want that if a test case is failed, it should be skipped and the next test case should be started, select the "Fail Test Case if it has failed test steps" and un-check the "Abort on error" checkbox and you are done.
  • Hi!

    Go to the TestCase view and click the scewdriver and wrench icon.

    --
    Regards

    Erik
    SmartBear Sweden