Controlling Test Execution Flow

Applies to TestComplete 12.60, last modified on September 17, 2018

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.

Stopping Tests on Errors and Exceptions - Overview

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

Stopping Current Test Item Right After an Error

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

Stopping Current Test Item After 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.

Stopping Project Run After 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.

Stopping Project Run After 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.

Stopping Current Test Item After Only Specific Errors

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

Stopping 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