Action
Logs an warning message and a screenshot to the TrueLog file that is written during test execution.
Syntax
C#
LogWarning (message, [screenshotMode]);
VB
LogWarning (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
LogWarning ("Baseline file is missing.");
'VB .NET code
LogWarning ("Baseline file is missing.")