Versions Compared

Key

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

Qualitia supports headless executions on Linux. In order to execute test cases in headless mode, you need to configure the headless box by installing X Virtual FrameBuffer (Xvfb).
X Virtual FrameBuffer (Xvfb) Installation
The Xvfb helps in performing all graphical operations in memory without displaying any screen output. With reference to Qualitia, Xvfb allows executing test cases performing all UI operations and capturing of screenshots without displaying on the screen. For this reason, it is recommended to set ScreenCaptureMode as Browser when performing headless mode.
To install Xvfb, enter the following command at command prompt;

sudo apt-get install xvfb 

sudoXvfb :99 -acXvfb Xvfb uses the unique display number to run the operations graphically. Decide any number and turn the access control off entering the following command; :

sudoXvfb :99 -ac

Once this is done successfully, change the properties in the qualitia.properties file as mentioned below.

 HeadlessMode=True 
DISPLAY=99
ScreenCaptureMode=BROWSER

The following is the list of commands that you need to enter to run the QOP in headless mode
Xvfb :99&
export DISPLAY=:99
java –jar qualitia-offline-xxxx.

...

jar 

Note: Do not forget to enter the arguments related to properties file and any other arguments when executing qualitia-offline-xxxx.jar