OnLogFile Event

Applies to TestComplete 15.59, last modified on November 30, 2023

Occurs before a file is posted to the test log.


OnLogFile(SenderLogParamsLogFileParams) Parameters
Sender [in] Required Variant
LogParams [in] Required A LogParams object
LogFileParams [in] Required A LogFileParams object


The event occurs before a file is posted to the test log. You can create the OnLogFile event handler to perform desired actions upon posting the file to the log.


The event has the following parameters:


The Event control that processes the event.


The LogParams object that holds node attributes. You can use the LogParams.MessageText property to replace the TestComplete text with your own.


The LogFileParams object whose properties hold information about the file that was placed to the log.

Note: To avoid recurring calls, do not use the Log.File method within the event handler of the OnLogFile event.


For information on how to create an event handler for this and other TestComplete events, see Handling Events.

See Also

Posting Files to the Log
LogParams Object
OnLogMessage Event
OnLogError Event
OnLogWarning Event
OnLogCheckpoint Event
OnLogEvent Event
OnLogPicture Event
OnLogLink Event
Handling Events
Event Control

Highlight search results