OnLogFile Event

Applies to TestComplete 14.50, last modified on April 22, 2021

Occurs before a file is posted to the test log.

Declaration

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

Description

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.

Parameters

The event has the following parameters:

Sender

The Event control that processes the event.

LogParams

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

LogFileParams

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.

Remarks

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