If you are a Katalon Studio user, knowing how to deal with failure and move forward is essential. It is very easy to write and run scripts in Katalon Studio. In this post, we will discuss the best points for dealing with loss in Katalon Studio, and how to use it. if you’re a beginner or a more experienced Katalon Studio user, these points will help you to make the most of the testing process easy.Â
Failure happens in any learning process, and it has particular significance in the Katalon Studio for automation testing. Whether you are a beginner or an experienced user, encountering failure is inevitable when working with software tools. so, it is normal to understand the importance of overcoming these failures and using them as stepping stones towards proficiency and success.Â
Failure handling settings allow users to choose whether Katalon Studio will continue running or will stop running when errors occur during execution.Â
Currently, Katalon Studio allows the following failure-handling options:Â
Option | Description |
Stop on Failure |  Katalon Studio will stop its execution when any error occurs. The step which has errors will show with Failed status. |
Continue on Failure | Katalon Studio will continue running if any error occurs during its execution. The step that has errors will show with Failed status. (it is optional) |
Optional | Katalon Studio will continue running if any error occurs during its execution.  |
Using these steps default behavior for failure is handled to the whole project:Â
3. Select the option from the drop-down and Click on OK when you’re done.Â
An option that is selected will be displayed on new test steps only
The default failure handling behavior can be done in two ways:-Â
 Manual view and Scripting view Â
In Manual View:-Â
2. Then select the failure handling option and click on save to save your test case.Â
In Scripting View​Â
There are built-in keywords in Katalon Studio, where we can add Failure Handling as the last parameter as shown in the below figure. When editing a keyword in Scripting mode, use any of these options to specify its behavior.Â
FailureHandling.STOP_ON_FAILUREÂ
FailureHandling.CONTINUE_ON_FAILUREÂ
FailureHandling.OPTIONALÂ
For example:Â
Using the above points, it gets very easy to overcome failure handling in Katalon studio.Â
Isha Sheth works as a Manual Tester at QACraft. She has done bachelor's in Computer Science and has 1+ Year of experience in Software testing. In free time, She loves to do reading and explore technical skills.
© Copyright 2024 QACraft Pvt. Ltd. All rights reserved.
Contact : +91 9157786796
Error: Contact form not found.
isha