Execute Twist scenarios on a box without a display (Headless)
Twist can be run on a box that does not have a display using Xvfb (http://en.wikipedia.org/wiki/Xvfb).Follow these steps.
- Install Xvfb
- Start Xvfb server with the following command
sudo Xvfb :1 &
- Set the display to :1
- Now you can execute the Ant target to run Twist scenarios ant execute-scenarios
Sometimes, when starting Xvfb with the command described in step 1, the following error is thrown:
could not open default font 'fixed'
If this error occurs, start Xvfb by running the following command:
sudo Xvfb :1 -fp /usr/share/fonts/X11/misc &