Skip to main content

Configure failure handling settings in Katalon Studio

Failure handling settings allow users to decide whether Katalon Studio will continue running or not when errors occur during execution.

Currently, Katalon Studio supports the following failure handling options:

OptionDescription
Stop on Failure

Katalon Studio will stop execution should there be any error occurs.

The step with errors will have Failed status.

Continue on Failure

Katalon Studio will continue in spite of any error during its execution.

The step with errors will have Failed status.

Optional

Katalon Studio will continue in spite of any error during its execution.

The step with errors will have Warning status.

Default failure handling behavior

Follow these steps to define the default behavior for failure handling to be applied across your project:

  1. From Katalon Studio menu, access Project > Settings > Test Design > Test Case.

  2. Select the preferred option for the default behavior of Failure Handling. Click OK when you're done.

    Note:

    The selected option will be applied to new test steps only. For the steps already existed in your test cases, their failure handling option will not be affected by this change. Thus, you may need to update them manually.

Override failure handling behavior

You can override the default failure handling behavior for each test step manually in either Manual view or Scripting view of test case.

In Manual View

  1. Right click on the step that you want to change the failure handling behavior to trigger its context menu



  2. Select the preferred failure handling option and save your test case.

In Scripting View

For all built-in keywords in Katalon Studio, you can add FailureHandling as the last parameter.When editing a keyword in Scripting mode, use any of these option to specify its behavior.

FailureHandling.STOP_ON_FAILURE
FailureHandling.CONTINUE_ON_FAILURE
FailureHandling.OPTIONAL

For example:



Tips and tricks:
Was this page helpful?