On Fri, Jan 31, 2014 at 9:23 AM, Maherzia BELAAZI <maherzia.bela...@st.com>wrote:
> Hello, > > > > I’m tryning to run swtbot using tycho/Maven, I’m getting this error : > > *Running com.st.mlpc.test.MLPCTest* > > *!ENTRY com.st.mlpc.test 4 0 2014-01-31 09:02:01.072* > > *!MESSAGE Could not initialize bot* > > *!STACK 0* > > *java.lang.IllegalStateException: Could not find a display* > > * at > org.eclipse.swtbot.swt.finder.utils.SWTUtils.display(SWTUtils.java:250)* > > * at > org.eclipse.swtbot.swt.finder.finders.ControlFinder.<init>(ControlFinder.java:82)* > > * at > org.eclipse.swtbot.swt.finder.finders.ControlFinder.<init>(ControlFinder.java:72)* > > * at org.eclipse.swtbot.swt.finder.SWTBot.<init>(SWTBot.java:115)* > > * at > org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot.<init>(SWTWorkbenchBot.java:58)* > > > > *My pom.xml :* > > > > <packaging>eclipse-test-plugin</packaging> > > <build> > > <plugins> > > <plugin> > > <groupId>org.eclipse.tycho</groupId> > > <artifactId>tycho-surefire-plugin</artifactId> > > <version>0.16.0</version> > > <configuration> > > *<useUIHarness>true</useUIHarness>* > > * <useUIThread>false</useUIThread>* > > <product>com.st.platform.st_ide</product> > > <application>com.st.platform.st_ide</application> > > <testSuite>com.st.mlpc.test</testSuite> > > <testClass>com.st.mlpc.test.MLPCTest</testClass> > > <argLine>-Xms512m -Xmx1024m</argLine> > > </configuration> > > </plugin> > > </plugins> > > </build> > > > > Any help is so welcome. > > Thanks in advance, > > Maherzia > 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 & -- Matthias
_______________________________________________ swtbot-dev mailing list swtbot-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/swtbot-dev