Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] [swtbot-dev] Run swtbot tests using tycho/Maven

On Fri, Jan 31, 2014 at 9:23 AM, Maherzia BELAAZI <maherzia.belaazi@xxxxxx> wrote:



I’m tryning to run swtbot using tycho/Maven, I’m getting this error :


!ENTRY 4 0 2014-01-31 09:02:01.072

!MESSAGE Could not initialize bot


java.lang.IllegalStateException: Could not find a display

        at org.eclipse.swtbot.swt.finder.utils.SWTUtils.display(

        at org.eclipse.swtbot.swt.finder.finders.ControlFinder.<init>(

        at org.eclipse.swtbot.swt.finder.finders.ControlFinder.<init>(

        at org.eclipse.swtbot.swt.finder.SWTBot.<init>(

        at org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot.<init>(


My pom.xml :
















              <argLine>-Xms512m -Xmx1024m</argLine>






Any help is so welcome.

Thanks in advance,


looks like you are running that on a headless server, in Hudson/Jenkins enable the XVnc plugin
and start a window manager in a shell step before starting the tests

In EGit we use metacity as the window manager

metacity --replace --sm-disable &


Back to the top