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+

Three ways to execute test cases headlessly: 

You can execute test cases headlessly from your Qualitia Bot (erstwhile Qualitia offline package) using some options from the googlechromedc.properties / firefoxdc.properties file.You will find these files in the config folder of Qualitia bot.

For Firefox 56 and above and for Chrome 60 and above, you can execute test cases in headless mode using Chrome/Firefox Options from the firefoxdc.properties or googlechromedc.properties files.

Google Chrome

To execute test cases in headless mode on Chrome.

  1. Open googlechromedc.properties.
  2. In the Chrome options properties section:
    1. Set custom_use_chromeoptions as True.
    2. Set args as --headless.

Firefox

To execute test cases in the headless mode on Firefox.

  1. Open firefoxdc.properties.
  2. In the Firefox options properties section:
    1. Set custom_use_firefoxoptions as True.
    2. Set args as -headless.

Using qualitia.properties (Headless Execution Properties)

You can execute test cases headlessly from your Qualitia Bot (erstwhile Qualitia offline package) using some options from the qualitia.properties file. You will find this file in the config folder of Qualitia bot.

If you are using Mozilla Firefox versions below 56, headless executions can be triggered only by setting Headless Execution Properties in the qualitia.properties file. This mode of headless execution works on Linux only.

To execute using qualitia.properties

  1. Open qualitia.properties.
  2. In the Headless Execution Properties section:
    1. Set HeadlessMode as True.
    2. Set Display and BrowserBinaryPath as per the requirements.


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.  

Not finding what you need?