OnLogPicture Event

Applies to TestComplete 15.64, last modified on June 12, 2024

Occurs before an image is posted to the test log.


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


The event occurs before an image is posted to the test log. Use this event to perform desired actions upon posting images to the log. For instance, you can send each posted picture to a printer.


The event has the following parameters:


The Event control that processes the event.


The LogParams object that holds node attributes.


The LogFileParams object whose properties hold information about the image file that was referenced and the name and location of its copy in the results folder.

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


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

See Also

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

Highlight search results