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
_______________________________________________
swtbot-dev mailing list
swtbot-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/swtbot-dev

Reply via email to