QA Wizard Pro supports the following constants.
| Constant | Description |
|---|---|
| Boolean | |
| False | Boolean False; equivalent to 0 |
| True | Boolean True; equivalent to 1 |
| Browser | |
| BrowserTypeChrome | Browser is Google Chrome |
| BrowserTypeFirefox | Browser is Mozilla Firefox |
| BrowserTypeIE | Browser is Microsoft Internet Explorer |
| Character | |
| Doublequote | Double quotation mark |
| Newline | New line character |
| Singlequote | Single quotation mark |
| Comparison | |
| Nothing | Uninitialized object value |
| Null | No valid data |
| Directory | |
| QAWApplication | Directory where the application last started by the RunApp statement in an individual script run is stored |
| QAWCurrent | Current QA Wizard Pro working directory |
| QAWLoadTestReports | Directory that stores load test reports |
| QAWReports | Directory that stores playback reports |
| QAWScript | Directory that stores the currently running script |
| QAWWorkspace | Directory that stores the workspace |
| WinApplicationData | Directory that stores application-specific data for the current roaming user (e.g., C:\Users\<username>\AppData\Roaming) |
| WinCommonApplicationData | Directory that stores application data for all users (e.g., C:\ProgramData) |
| WinCommonProgramFiles | Directory that stores shared application components (e.g., C:\Program Files (x86)\Common Files) |
| WinCookies | Directory that stores Internet cookies (e.g., C:\Users\username\AppData\Roaming\Microsoft\Windows\Cookies) |
| WinDesktop | Desktop directory (e.g., C:\Users\username\Desktop) |
| WinFavorites | Directory that stores user-specified favorites (e.g., C:\Users\username\Favorites) |
| WinHistory | Directory that stores Internet history (e.g., C:\Users\username\AppData\Local\Microsoft\Windows\History) |
| WinInternetCache | Directory that stores temporary Internet files (e.g., C:\Users\username\AppData\Local\Microsoft\Windows\Temporary) |
| WinLocalApplicationData | Directory that stores local, non-roaming applications (e.g., C:\Users\username\AppData\Local) |
| WinMyDocuments | Directory that stores documents (e.g., C:\Users\username\Documents). Same as WinPersonal. |
| WinMyMusic | Directory that stores music files (e.g., C:\Users\username\Music) |
| WinMyPictures | Directory that stores image files (e.g., C:\Users\username\Pictures) |
| WinPersonal | Directory that stores documents (e.g., C:\Users\username\Documents). Same as WinMyDocuments. |
| WinProgramFiles | Directory that stores applications (e.g., C:\Program Files (x86)) |
| WinPrograms | Directory that stores program groups (e.g., C:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs) |
| WinRecent | Directory that stores the most recently used documents (e.g. C:\Users\username\AppData\Roaming\Microsoft\Windows\Recent) |
| WinSendTo | Directory that stores Send To shortcut menu items (e.g., C:\Users\username\AppData\Roaming\Microsoft\Windows\SendTo) |
| WinStartMenu | Directory that stores Start menu items (e.g., C:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu) |
| WinStartup | Directory that stores the startup program group (e.g., C:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup) |
| WinSystem | Windows System directory (e.g., C:\Windows\System32) |
| WinTemplates | Directory that stores document templates (e.g., C:\Users\username\AppData\Roaming\Microsoft\Windows\Templates) |
| Encoding | |
| EncodingASCII | ASCII (7-bit) character set encoding |
| EncodingAutoDetect | Detects encoding based on byte-order marks |
| EncodingDefault | Default operating system encoding |
| EncodingUCS2 | UCS-2 format encoding |
| EncodingUTF16 | Unicode 16-bit format, little-endian byte order encoding |
| EncodingUTF16Big | Unicode 16-bit format, big-endian byte order encoding |
| EncodingUTF32 | Unicode 32-bit, little endian byte order encoding |
| EncodingUTF7 | Unicode 7-bit format encoding |
| EncodingUTF8 | Unicode 8-bit format encoding |
| HTML table | |
| AnyColumn | HTML table column |
| AnyRow | HTML table row |
| OCR checkpoints | |
| OCRControlRelative | Coordinates relative to the control. Only used with OCR checkpoints. |
| OCRWindowRelative | Coordinates relative to the window. Only used with OCR checkpoints. |
| Math | |
| Pi | The number Pi (3.14...) |
| Playback | |
| ArgumentErrorNumber | Playback error number 2. Assigned to errors caused by invalid, missing, or unexpected arguments. |
| Default | Default run-time playback speed |
| Defaultspeed | Default low-level action playback speed |
| FunctionErrorNumber | Playback error number 4. Assigned to errors generated by built-in functions and statements. |
| InDebugMode | Determines if script is running in debug mode |
| Maximumspeed | Maximum low-level action playback speed |
| ObjectActionErrorNumber | Playback error number 1. Assigned to errors that indicate a control was not found or interacted with. |
| ParserErrorNumber | Playback error number 3. Assigned to errors caused by invalid statements. |
| Stress testing | |
| SimulationOff | Disables stress testing simulations |
| VBScript string | |
| vbCr | Carriage return. Equivalent to Chr(13). |
| vbCrLf | Carriage return followed by line feed. Equivalent to Chr(13) & Chr(10). |
| vbFormFeed | Form feed. Equivalent to Chr(12). |
| vbLf | Line feed. Equivalent to Chr(10). |
| vbNewLine | Platform-specific new line character. Equivalent to Chr(13) & Chr(10). |
| vbNullChar | Null-terminated string. Equivalent to Chr(0). |
| vbNullString | Null string. Equivalent to Null. |
| vbTab | Horizontal (row) tab. Equivalent to Chr(9). |
| vbVerticalTab | Vertical (column tab). Equivalent to Chr(11). |