[Webtest] Running webtest without xserver->X11

Michael Habbert Michael Habbert <michael@kelikami.de>
Wed, 17 Sep 2008 23:43:22 +0200

Hi Steve,

did you try the webtest property:


somethink like that (see inside the $WEBTEST_HOME/webtest.xml file for 
the right name).


btw: do you use the webtest-report-plugin? I tried with no success so far.

Steve Chikwaya schrieb:
> Hi everyone,
> Is there anyway to run webtest on a Linux server that does not have 
> xserver->X11 installed?  I am currently using Hudson to manage nightly 
> tests and would like to run webtest independent of installing a GUI.  
> The webtest throws an error, though does not fail on initialization as 
> it is expecting to launch the initialization window.  The webtest then 
> fails at the end when trying to launch the test results.  Below is the 
> initial error i receive:
> wt.defineMacros: [property] Exception in thread "AWT-EventQueue-0" 
> org.codehaus.groovy.runtime.InvokerInvocationException: 
> java.lang.RuntimeException: Failed to create component for 'frame' 
> reason: java.awt.HeadlessException: [property] No X11 DISPLAY variable 
> was set, but this program performed an operation which requires it. 
> [property] at 
> org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:92) 
> [property] at 
> groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230) [property] at 
> Thanks!