Detecting the Underlying Operating System Built-ins¶
Detects whether intaQt is running on Windows, Linux or Mac OS.
Note: More information about the assert expression is available in the Statement Language section.
Detect Windows¶
Checks if intaQt is running on Windows.
Syntax
1 | <isWindows Boolean> := isWindows() |
Returns
true
if intaQt is running on Windows, otherwise false
.
Example 1 - Checks that System is Running on Windows
1 2 3 | stepdef "check that system is running on Windows" assert isWindows() end |
Example 2 - Checks that System is Not Running on Windows
1 2 3 | stepdef "check that system is not running on Windows" assert not isWindows() end |
Detect Linux/Mac OS¶
Checks if intaQt is running on Linux/Mac OS.
Syntax
1 | <isPosix Boolean> := isPosix() |
Returns
true
if intaQt is running on Linux / Mac OS, otherwise false
.
Example 1 - Checks that System is Running on Linux/Mac OS
1 2 3 | stepdef "check that system is running on Linux or Mac" assert isPosix() end |
Example 2 - Checks that System is Not Running on Linux/Mac OS
1 2 3 | stepdef "check that system is not running on Linux or Mac" assert not isPosix() end |