Stop a Project Run on an Error

Applies to TestComplete 15.47, last modified on January 20, 2023

To stop a project run when an error or an exception occurs, you can do the following:

Approach 1

  1. In the Execution Plan editor of your project, make sure that the On error property of a test item is set to Use project’s 'On error' property:

    Set the On error property to Use project's On error property

    Click the image to enlarge it.

  2. On the Properties page of your project, set the Playback > Error handling > On error property of your project to Stop project:

    Set the On error property of the project to Stop project

    Click the image to enlarge it.

Approach 2

In the Execution Plan editor of your project, set the On error property of your test item to Stop project:

Set the On error property to Stop project

Click the image to enlarge it.

Note: The test item will ignore the Error handling > On error property of your project.

Whenever you run your project and an error occurs in a test item, TestComplete will stop the problematic test item immediately. It will not run any further test items:

Stop project run

Click the image to enlarge it.

See Also

Controlling Test Execution Flow
About Controlling Test Execution Flow
Project Properties - Playback Options

Highlight search results