# Need to stop the Execution of the Test suite when we encounter a Test case as Fail or Error

**URL:** <https://forum.katalon.com/t/need-to-stop-the-execution-of-the-test-suite-when-we-encounter-a-test-case-as-fail-or-error/41016>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [March 12, 2020, 4:21pm UTC](https://forum.katalon.com/t/need-to-stop-the-execution-of-the-test-suite-when-we-encounter-a-test-case-as-fail-or-error/41016 "2020-03-12T16:21:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![venkatasai.darkumall](https://avatars.discourse-cdn.com/v4/letter/v/e79b87/32.png) [@venkatasai.darkumall](https://forum.katalon.com/u/venkatasai.darkumall)\
**Post date:** [March 12, 2020, 4:21pm UTC](https://forum.katalon.com/t/need-to-stop-the-execution-of-the-test-suite-when-we-encounter-a-test-case-as-fail-or-error/41016/1 "2020-03-12T16:21:40Z")

</div>

I am not sure how to solve the issue.

when i am running my Test Suite when the Test case is failed run should stop  
I have tried Annotations like TearDownIfError, TearDownIfFailed, but next test case is getting executed again. kindly let me know how to resolve this issue.

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [November 29, 2021, 6:41am UTC](https://forum.katalon.com/t/need-to-stop-the-execution-of-the-test-suite-when-we-encounter-a-test-case-as-fail-or-error/41016/2 "2021-11-29T06:41:32Z")

</div>

See my solution:

> [@How to let TestCases in a TestSuite to quit once a TestCase failed](http://forum.katalon.com/t/how-to-let-testcases-in-a-testsuite-to-quit-once-a-testcase-failed/60404):
>
> I have published a demo project on GitHub: Problem to solve A topic in the Katalon User Forum wrote: [Stop all test suite if one test case failed](http://forum.katalon.com/t/stop-all-test-suite-if-one-test-case-failed/49629) Hi, there is a way to stop a test suite if one of its cases fails? I need some method or form to stop the suite, does anyone have a solution? Fair enough requirement, I think. Let me assume I have a Test Suite TS1 is comprised with 3 Test Cases: TC1 , TC2 , TC3 . The TC3 runs very long (e.g, 20 minutes). The TC2 normally passes but oc…
