AnandKiran
17 years agoFrequent Contributor
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
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