Executing QOP on Mac is similar to traditional method of executing test cases on Windows or Linux. You need to make some changes to the properties file or provide command line arguments accordingly.
Prior making Before you make changes to the properties file in QOP, please note the following things, especially when you are moving from Windows to Mac or Linux.
...
You can use Qualitia System Variables to identify the execution environment using readily available system variables such as operating systems, browsers, and so on.
System Variable | Description |
$$_ISMAC | Returns "TRUE" if execution OS is Mac, "FALSE" otherwise |
$$_ISWINDOWS | Returns "TRUE" if execution OS is Windows, "FALSE" otherwise |
$$_ISLINUX | Returns "TRUE" if execution OS is Linux, "FALSE" otherwise |
$$_ISFIREFOX | Returns "TRUE" if execution browser is Firefox, "FALSE" otherwise |
$$_ISCHROME | Returns "TRUE" if execution browser is Chrome, "FALSE" otherwise |
$$_ISIE | Returns "TRUE" if execution browser is IE, "FALSE" otherwise |
$$_ISSAFARI | Returns "TRUE" if execution browser is Safari, "FALSE" otherwise |
Note: Values (TRUE and FALSE) should be given in upper case.
...
When developing test cases using Qualitia Test Automation Studio, our test executions are bound to be executed tailored for execution on Windows. Same The same test cases can be executed using Mac and Linux platforms as they are were created. Some test cases might need some changes that include actions which uses in cases where actions use file paths as their parameters. These steps need some changes to be compatible with Mac.
Test cases where steps need to be executed based on OS; you can use "If Else" conditions along with Qualitia System Variables.
ExecuteFile For example, the ExecuteFile step can be changed in the following manner to work on Windows, Linux, and Mac.
If "{$$_ISMAC}"
ExecuteFile "/Users/admin/scripts/myscript.sh"
Else If "{$$_ISWINDOWS}"
ExecuteFile "C:\users\user1\myapp.exe"
Else If "{$$_ISLINUX}"
ExecuteFile "/Users/admin/scripts/myscript.sh"
Similarly, steps using below the following actions can also be accommodated to work across multiple platforms.
...