Notice: This resource is no longer being actively maintained and as a result some information may be out of date or inaccurate. Please see for technical instructions or for support related concerns.
DEV@cloud » Testing GUI applications

Testing GUI applications

Last modified by Nicolas De Loof on 2011/10/28 12:24


In order to perform UI testing your applications on DEV@cloud, you may need to have an X11 windowing server installed.

There are several ways to acquire this X11 display

DEV@cloud support

DEV@cloud supports the second of these options directly using the Xvfb application.

Xvfb is deployed into the build executors and just needs to be started to be available for your application.

Starting Xvfb

export DISPLAY=:1
Xvfb :1 &
... gui code / tests ...

Using with multiple build steps

If your job is configured with multiple build steps, you need to propagate the DISPLAY env variable to all steps. The simpler way is to use the setEnv plugin to define DISPLAY for the whole build. 

For maven 2/3 jobs, you'll need the m2 extra steps plugin to start Xvfb as a pre-build step.


If you get an error similar to the following it means that you haven't started Xvfb properly.

Caused by: java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.awt.GraphicsEnvironment.checkHeadless(
at java.awt.Window.<init>(
at java.awt.Frame.<init>(
at java.awt.Frame.<init>(
at javax.swing.SwingUtilities$SharedOwnerFrame.<init>(
at javax.swing.SwingUtilities.getSharedOwnerFrame(
at javax.swing.JDialog.<init>(
... thousands more ...
Created by Ben Walding on 2011/07/19 22:07