Fail-fast testing stops a test run as soon as failures pass a threshold, saving CI/CD time and infrastructure cost. Learn the fail-fast principle, how to set failure thresholds in Katalon Studio, and how to track trends in TestOps.
The Fail-Fast Principle in Software Testing

In software development, a fail-fast system reports a failure immediately instead of continuing to run. The fail-fast principle is built on the idea that a system should stop normal operations rather than try to work around a flawed piece of code.
The fail-fast principle makes software bugs easier to detect earlier in the development cycle. It allows for faster strengthening of the code under development, limits the number of bugs that make it into production, and reduces the intrinsic cost of letting bugs in the code.
In short, it is better to fail fast and fail often during development than to fail later when the product is about to be released.
One of the benefits of test automation is the ability to test early, often, and anywhere in the development cycle. Katalon Studio 8.1 introduced a feature that makes your automation cycle more efficient and cost-effective. Applying the fail-fast principle, Studio 8.1 lets users stop Test Suite executions when a set failure threshold is reached.
This new feature will help make more efficient use of testing devices and improve infrastructure costs, especially for cloud users.
Fail Fast, Fail Often in Katalon Studio: Terminate Execution Conditionally
Failure thresholds in Katalon Studio 8.1 let users terminate a Test Suite or Test Suite Collection execution when a significant number of test cases have failed. This gives teams feedback earlier, rather than waiting until the whole test cycle is complete.
To use this feature, add the new command option -maxFailedTests=T, where T is the maximum number of failed executions allowed before the test is stopped. Once the execution stops, Katalon Studio generates a report with all the insights. This feature is only available for tests executed through the CLI or CI using Katalon Runtime Engine.
First, find the option to set the threshold in the Generate Command for Console Mode dialog box. Set your failure tolerance by ticking the box “Terminate the execution once the total number of test failures reaches this threshold” and typing a number in the text field.

Generate the CLI command, which will now include the -maxFailedTests= parameter.

Run the execution. Once it reaches the threshold, a message in the CLI indicates that the execution stopped because of the failure rule.

You can also take a look at the summary of passed and failed tests generated by Studio in the Test Cases Table within the reports:

To learn more about using this feature in your testing environment, check out the Katalon Studio 8.x release notes.
Access Pass/Fail Trends with TestOps
After setting your failure threshold, connect to Katalon TestOps, Katalon’s test reporting and orchestration platform, to examine your pass/fail patterns.
Step 1. Set Up an Organization and Project
First, log in to Katalon TestOps with your Katalon account.

Step 2. Integrate With TestOps in Katalon Studio
Open Katalon Studio, go to Project > Settings (similar for both Mac and Windows).

- Click on Katalon TestOps > check the Override authentication box > choose your Organization (if you cannot find your Organization, click Fetch Organization)
- Insert your Katalon email and password
Click on Enable Katalon TestOps Integration > choose your Team > Project > Apply and close.
Step 3. Push and View Katalon Studio Test Suite Results on TestOps
Note: TestOps will automatically collect all of your test runs by Test Suite. Assemble your Test Cases into a distinct Test Suite to ensure that executions are thoroughly documented. In the left menu, navigate to TestOps > Test Runs > select a Test Run.

Once you’re in TestOps, you can view the pass/fail trends.

Wrapping Up
Failure thresholds were introduced in Studio 8.1 and remain available in later versions. Download the latest version of Katalon Studio to start using fail-fast execution in your pipeline.
For a complete list of new features, improvements, and fixes, visit the release notes. As always, please post any questions, ideas, or concerns on our community site. We are eager to hear from you.
Frequently asked questions
It is the idea that systems should stop execution as soon as failures occur, making bugs easier to detect early and reducing the cost of defects.
It introduces a failure threshold that halts test suite execution automatically when a specified number of test cases fail.
By using the -maxFailedTests=T command option or selecting the termination option in the Generate Command for Console Mode dialog.
It is available for tests executed through the CLI or CI pipeline using the Katalon Runtime Engine.
By integrating with Katalon TestOps, which centralizes reporting and visualizes pass/fail patterns across test runs.

Test everything. Ship with confidence.
From generating test cases to spotting failures, Katalon's AI works across your entire pipeline, automatically.





