I’m running a test suite collection and I need to stop the execution if any test case fails. Is that possible?
For example, I have 6 test suites in a collection. If the third test case fails for any reason, I want to stop the execution of the rest of the tests.
Your question looks very similar to this thread. I would suggest you to see this link.
Is there a way to stop Test Suite execution if one of its Test Cases fails?
I.e. in case of creating certain elements some crucial part is missing, and then there is no point of reproducing that issue again and again in every Test Case.
I don’t think you can do that, but you migth play around with “skip test case option”, available since v5.10:
Please provide solution to the above thread. How to stop the entire Test suite from getting executed when one test case fails in the Suite
I have got a solution to this years-old problem
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
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…
From version 8.1.0, Katalon supports stop execution when exceeding N test case failed via running by KRE
Imaging that we have a test suite to measure the Health of our product. This test suite contains about 100 TCs. To make sure product quality is good, it is accepted only N test cases failed (1<=N<=100 as an example). If having N test cases failed, stop current executing & returned build for fixing. With 8.1.0, we can do that
Hope it will help. More information can be found here:
Note: Test suite& test suite collection have the same logic