Forum Discussion
AlexanderM
Staff
15 years agoHello Michael,
To accomplish your task, you should handle the OnLogError event.
There is a quote from the Catch Operation help topic:
Note that the Try and Catch operations only handle exceptions raised by the test engine, like an incorrect number of parameters specified for a test operation or incorrect parameter types, syntax errors in code expressions embedded in the test and others. They do not handle errors that are posted to the test log by TestComplete’s test objects, methods and properties, like “Object not found”, “Object does not support this property or method” and the like. To handle these errors, create an event handler for the OnLogError event (see About Events and Event Handling ).
Also, see the Creating an Event Handler for the OnLogError Event help topic.