Forum Discussion

AnandKiran's avatar
AnandKiran
Frequent Contributor
17 years ago

How to stop or abort a test suite when a test case fails

Hi Ole,
          I got some "N" number of test cases under a test suite , there is scenario --If a condition fails in my test case the particular test case should be failed and it should go on with the remaining test cases

For ex :
if(stringa1==Name)
{

UISupport.showInfoMessage("TC failed")

}

Using the above code i am able to  tell the user that the test has failed. But the test case runs till the end . I want the case to be aborted when any failure occurs.

Can you please give any idea for the issue.

Thanks in Advance
With Regards
Anand Kiran
  • Hi Anand,


    It is still not possible to fail a test suite programmatically, i.e. from a Groovy script.
    This feature will be available in the next version of soapUI.

    Stay tuned!


    Cheers!
    /Nenad Nikolic a.k.a. Shonzilla