LogInfo Method (Agent)

Class

Agent.

Action

Logs an informational message and a screenshot to the TrueLog file that is written during test execution.

Syntax

C#
LogInfo (message, [screenshotMode]);
VB
LogInfo (message, [screenshotMode])
Variable Description
message The text to write to the TrueLog file. STRING.
screenshotMode Optional: Defines whether a screenshot of the complete desktop, the active application, or the active window should be logged. If not set, no screenshot is logged. Enum.

Example

// C# code
LogInfo ("Succesfully logged in to the application.");
'VB .NET code
LogInfo ("Succesfully logged in to the application.")