Displays a warning message in the Errors pane and adds it to the run report. Use this statement to stay informed if an error occurs without stopping the script.
This statement is often used with conditional statements. See Conditional statements.
Note: To display a warning message and stop the script, use the Fail statement.
Syntax
Warning("WarningMessage")
Arguments
| Argument | Description |
|---|---|
| WarningMessage | Warning message to display in the Errors pane and run report. |
Example
regValue = ReadRegistryEntry("HKEY_CLASSES_ROOT\\.qawscript", "")
If regValue = "QAWizardPro.Script" Then
PrintLn("Scripts entered correctly in registry")
Else
Warning("Scripts not correctly entered in registry")
End If