Occurs before an error message is posted to the test log.
|LogParams||[in]||Required||A LogParams object|
The event occurs before an error message is posted to the test log. You can use this event to perform desired actions when an error message is posted to the log. For instance, TestComplete posts an error message when an error occurs during script execution.
The event has the following parameters:
The Event control that processes the event.
OnLogError event is only generated for error messages caused by errors that occur during calls to methods of TestComplete program objects. For example, this event is raised when you call
Log.Error to post the error message manually, or when an error occurs because of a call to
Sys.Process to obtain the
process object which currently does not exist in the system.
OnLogError event is not raised for error messages caused by exceptions. Exceptions can occur in the application under test and also can occur due to errors in the script code. For example, the event is not raised by “The … process crashed” error messages posted to the test log. For information on how to handle these exceptions, see Handling Exceptions in Scripts.
For information on how to create an event handler for this and other TestComplete events, see Handling Events.
In addition, do not call the
NetworkSuite.Synchronize method from the event handler. The method will always return False.