OnLogPicture Event

Applies to TestComplete 15.70, last modified on December 17, 2024

Occurs before an image is posted to the test log.

Declaration

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

Description

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.

Parameters

The event has the following parameters:

Sender

The Event control that processes the event.

LogParams

The LogParams object that holds node attributes.

LogFileParams

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.

Remarks

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