Forum Discussion
AlexeyKolosov
14 years agoStaff
Hi Sumedha,
First of all, I recommend that you disable the "stop on error" option to prevent TestComplete from stopping test execution when an error occurs (see the Stopping Tests on Errors and Exceptions help topic for more information). After that, you'll be able to stop the current test item's execution via implementing an event handler for the OnLogError event and handling the specific error message. If an error message which is going to be posted to the test log contains a specific string (e.g. "object not found"), you'll need to call the Runner.Stop method and pass true as the method's argument.
First of all, I recommend that you disable the "stop on error" option to prevent TestComplete from stopping test execution when an error occurs (see the Stopping Tests on Errors and Exceptions help topic for more information). After that, you'll be able to stop the current test item's execution via implementing an event handler for the OnLogError event and handling the specific error message. If an error message which is going to be posted to the test log contains a specific string (e.g. "object not found"), you'll need to call the Runner.Stop method and pass true as the method's argument.
Related Content
- 5 years ago
- 14 years ago
Recent Discussions
- 3 hours ago
- 3 days ago