# Test Suite Configuration to terminate after any test fail

**URL:** <https://forum.katalon.com/t/test-suite-configuration-to-terminate-after-any-test-fail/10252>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [April 12, 2018, 12:05pm UTC](https://forum.katalon.com/t/test-suite-configuration-to-terminate-after-any-test-fail/10252 "2018-04-12T12:05:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kenan\_Yildirim](https://avatars.discourse-cdn.com/v4/letter/k/4491bb/32.png) [@Kenan\_Yildirim](https://forum.katalon.com/u/Kenan_Yildirim)\
**Post date:** [April 12, 2018, 12:05pm UTC](https://forum.katalon.com/t/test-suite-configuration-to-terminate-after-any-test-fail/10252/1 "2018-04-12T12:05:03Z")

</div>

Hi.  
I have some test cases which are dependent on each other so Test Suite should not continue for other test cases. How can I adjust my test suite for this purpose ?

Briefly, if one test case fails, then test suite should be ended.

---

<div class="post-metadata">

**Author:** ![Mate\_Mrse](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/mate_mrse/32/345_2.png) [@Mate\_Mrse](https://forum.katalon.com/u/Mate_Mrse)\
**Post date:** [April 12, 2018, 12:43pm UTC](https://forum.katalon.com/t/test-suite-configuration-to-terminate-after-any-test-fail/10252/2 "2018-04-12T12:43:57Z")

</div>

Hello  
Take a look at this topic:

http://forum.katalon.com/discussion/1988/can-i-create-a-dependency-between-testcases

---

<div class="post-metadata">

**Author:** ![Peter\_Wilson](https://avatars.discourse-cdn.com/v4/letter/p/9fc29f/32.png) [@Peter\_Wilson](https://forum.katalon.com/u/Peter_Wilson)\
**Post date:** [April 12, 2018, 4:11pm UTC](https://forum.katalon.com/t/test-suite-configuration-to-terminate-after-any-test-fail/10252/3 "2018-04-12T16:11:19Z")

</div>

I believe you could use the FailureHandling which is described here:  
[https://docs.katalon.com/display/KD/Failure+handling](https://docs.katalon.com/display/KD/Failure+handling "Link: https://docs.katalon.com/display/KD/Failure+handling")  
You can also use KeywordUtil.markFailed/markFailedAndStop to mark the test as failed and stop the execution.  
[https://api-docs.katalon.com/com/kms/katalon/core/util/KeywordUtil.html](https://api-docs.katalon.com/com/kms/katalon/core/util/KeywordUtil.html "Link: https://api-docs.katalon.com/com/kms/katalon/core/util/KeywordUtil.html")

---

<div class="post-metadata">

**Author:** ![Yves\_Beaulieu](https://avatars.discourse-cdn.com/v4/letter/y/b9e5f3/32.png) [@Yves\_Beaulieu](https://forum.katalon.com/u/Yves_Beaulieu)\
**Post date:** [September 21, 2018, 8:10pm UTC](https://forum.katalon.com/t/test-suite-configuration-to-terminate-after-any-test-fail/10252/4 "2018-09-21T20:10:22Z")

</div>

> > [Mate Mrse](https://forum.katalon.com/profile/3100/Mate%20Mrse) said:
> > 
> > Hello  
> > Take a look at this topic:
> > 
> > http://forum.katalon.com/discussion/1988/can-i-create-a-dependency-between-testcases
> 
> Your link doesn’t work !!

---

<div class="post-metadata">

**Author:** ![Ibus](https://avatars.discourse-cdn.com/v4/letter/i/e9a140/32.png) [@Ibus](https://forum.katalon.com/u/Ibus)\
**Post date:** [September 22, 2018, 7:47am UTC](https://forum.katalon.com/t/test-suite-configuration-to-terminate-after-any-test-fail/10252/5 "2018-09-22T07:47:11Z")

</div>

@[Yves Beaulieu](http://forum.katalon.com/profile/5465/Yves%20Beaulieu)

The same discussion here:

> **[Stopping Test Suite execution if Test Case fails](http://forum.katalon.com/discussion/9618/stopping-test-suite-execution-if-test-case-fails#latest)**
>
> Is there a way to stop Test Suite execution if one of its Test Cases fails? I.e.

---

<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/test-suite-configuration-to-terminate-after-any-test-fail/10252/6 "2021-11-29T06:41:12Z")

</div>

I have got a practical solution to this problem:

> [@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…

---

<div class="post-metadata">

**Author:** ![albert.vu](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/albert.vu/32/20595_2.png) [@albert.vu](https://forum.katalon.com/u/albert.vu)\
**Post date:** [August 8, 2022, 7:30am UTC](https://forum.katalon.com/t/test-suite-configuration-to-terminate-after-any-test-fail/10252/7 "2022-08-08T07:30:08Z")

</div>

Archived on August 8, 2022, 7:30am UTC


