When you run a project, TestComplete runs test items specified on its Test Items page. By default, if an error occurs, TestComplete will stop the entire project run right after the error message is posted to the test log. It will not execute any further test items (including the problematic item’s child items and iterations).
To change the default behavior and configure TestComplete to stop only the current test item and proceed with further test items:
Approach 1
-
On the Test Items page of your project, make sure that the On error property of a test item is set to Use project’s 'On error' property:
-
On the Properties page of your project, set the Runtime > Error handling > On error property of your project to Stop test item:
Approach 2
On the Test Items page of your project, set the On error property of your test item to Stop test item:
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 and proceed with the following sibling test item:
See Also
Controlling Test Execution Flow
About Controlling Test Execution Flow
Project Properties - Playback Options