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.
Windows | Mac | Linux | |
---|---|---|---|
Google Chrome | v60+ | v59+ | v59+ |
Firefox | v56+ | v56+ | v55+ |
Three ways to execute test cases headlessly:
Using googlechromedc.properties / firefoxdc.properties (Chrome/Firefox Options) - Recommended
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.
- Open googlechromedc.properties.
- In the Chrome options properties section:
- Set custom_use_chromeoptions as True.
- Set args as --headless.
Firefox
To execute test cases in the headless mode on Firefox.
- Open firefoxdc.properties.
- In the Firefox options properties section:
- Set custom_use_firefoxoptions as True.
- 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
- Open qualitia.properties.
- In the Headless Execution Properties section:
- Set HeadlessMode as True.
- 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.