Hi there,
I'm trying to set up a UI testing system with windowtester pro. I want to link those tests into the maven build process by using the Tycho plugin. For practising purpose I'm currently using an example project.
Now, when I build my project everything seems to compile fine, but when the test starts I get the following message:
Framework arguments:
-application org.eclipse.tycho.surefire.osgibooter.uitest
-testproperties C:\Users\jla\workspace\com.example.addressbook.test\target\surefire.properties
-product com.example.addressbook.bundle.product
Command-line arguments:
-debug
-consolelog
-data C:\Users\jla\workspace\com.example.addressbook.test\target\work\data
-dev file:/C:/Users/jla/workspace/com.example.addressbook.test/target/dev.properties
-application org.eclipse.tycho.surefire.osgibooter.uitest -testproperties C:\Users\jla\workspace\com.example.addressbook.test\target\surefire.properties
-product com.example.addressbook.bundle.product
!ENTRY org.eclipse.equinox.app 0 0 2012-10-08 13:34:34.480 !MESSAGE Product com.example.addressbook.bundle.product could not be found.
!ENTRY org.eclipse.ui 4 4 2012-10-08 13:34:36.649 !MESSAGE Exception in org.eclipse.ui.internal.FolderLayout.addView(String): org.eclipse.ui.PartInitException: View descriptor not found: org.eclipse.ui.navigator.ProjectExplorer
Instead of starting my example project, some default eclipse workbench is started.
This is the Pom.xml I have for my test project:
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<!-- Here is the link to the parent.pom.xml
-->
<parent>
<groupId>com.example.addressbook</groupId>
<artifactId>com.example.addressbook.parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>../com.example.addressbook.parent</relativePath>
</parent>
<artifactId>com.example.addressbook.test</artifactId>
<packaging>eclipse-test-plugin</packaging>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<testSuite>com.example.addressbook.test</testSuite>
<testClass>com.example.addressbook.test.AppTest</testClass>
<useUIHarness>true</useUIHarness>
<useUIThread>true</useUIThread>
<!-- my product that I want to test -->
<product>com.example.addressbook.bundle.product</product>
<!-- link for the
windowtester framework -->
<dependencies>
<dependency>
<type>p2-installable-unit</type>
<artifactId>com.windowtester.runtime.feature.group</artifactId>
<version>0.0.0</version>
</dependency>
</dependencies>
</configuration>
</plugin>
</plugins>
</build>
</project>
Regards and thanks for any help,
Janek