Document toolboxDocument toolbox

Headless Executions

Qualitia supports headless executions. In headless mode, tests are executed without display, keyboard, and mouse. Such executions are known to be faster as compared to executions that use a display. You can use Google Chrome and Mozilla Firefox browsers to execute test cases in headless mode.

Qualitia supports headless test case execution on following browsers and operating systems.


WindowsMacLinux
Google Chromev60+v59+v59+
Firefoxv56+v56+v55+


The following table shows how to execute test suite in headless mode by doing manual settings or through CLI for an offline package execution.

Method

Steps

Using Qualitia Client or OfflineConfigManager Utility

for Offline Packages

Do the following in the order listed:

  1. Open the associated execution for a test suite.
  2. From the Browser list, select Chrome or Firefox
  3. Select the Edit Desired Capabilities checkbox.
  4. If you have selected Chrome, select the chromeOptions checkbox, select the args checkbox, and enter --headless in the associated field.
  5. If you have selected Firefox, select the firefoxOptions checkbox, select the args checkbox, and enter --headless in the associated field.
  6. Click Ok.
Using CLI Command

Do the following in the order listed:

  1. Open the Command Prompt.

  2. Navigate to the location where you have saved the offline package.

  3. If you want to execute on Chrome, enter the following code:
    java -jar qualitiaoffline-xxxx.jar googleChrome.chromeOptions.args=--headless
  4. If you want to execute on Firefox, enter the following code:
    java -jar qualitiaoffline-xxxx.jar firefox.firefoxOptions.args=--headless.

Execution using X Virtual Frame Buffer (Xvfb) on Linux is no longer supported. You can execute test cases headlessly on Linux using any of these methods mentioned above.