Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Executing QOP offline package 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.

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.

  • All file and folder paths in Linux and Mac use "/" (forward slash) as a file separator,.
  • Linux and Mac do not support Internet Explorer. They support Safari (Mac only), Firefox, and Google Chrome,.
  • You need to change some data of Qualitia actions in order to run them on Linux and Mac.

...

Qualitia System Variables

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.

...

For more information about this, please refer to the Qualitia System Variables section. 

Building Cross Platform Test Cases

When developing test cases using Qualitia Test Automation Studio, our test executions are tailored for execution on Windows. The same test cases can be executed using Mac and Linux platforms as they were created. Some test cases might need some changes 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 the following actions can also be accommodated to work across multiple platforms.

  • DownloadFile
  • ExecuteQueryAndStoreInFile
  • CompareTabularResults
  • AttachFile

Figure 3.4.8 1
Image RemovedImage Added