Controlling Test Execution Flow

Applies to TestComplete 14.0, last modified on January 23, 2019

By default, TestComplete stops the entire test run when an error or exception occurs. You may want to change this default behavior, handle errors and continue the test run. This section contains topics that describe most frequent approaches for controlling the test tun flow in case of an error.

About Controlling Test Execution Flow

Provides an overview of various ways to control the test execution flow in case of an error.

Stop the Current Test Item Right After an Error and Proceed With the Next Test Item

Explains how to stop the current test item right after an error and continue with the next sibling test item.

Stop Current Test Item on the N-th Error

Describes how to stop the current test item when a certain number of errors occurred and to continue with the next sibling test item.

Stop Project Run on the N-th Error

Explains how to stop the entire project test run right after an error and to continue with the next project of the project suite.

Stop Project Run on the N-th Error

Explains how to stop the entire project run when a certain number of errors occurred and to continue with the next project in the project suite.

Stop Current Test Item Only on Specific Errors

Explains how to check the error type and to continue the test run depending on the result of the check.

Stop Project Suite After Project Fails

Explains how to stop the entire project suite run after a project run fails.

Stop Tests on Hosts When an Error Occurs on One of Them

Explains how to stop distributed tests on errors that occur in the projects running on remote machines.

See Also

Running Tests - Tips
Running Tests

Highlight search results