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