Releases: opcoach/E4Tester
Releases · opcoach/E4Tester
E4Tester with NatTable support and a better runner
This release provides the right code to use in maven Tycho and a set of methods to test nattables used in E4 application.
The p2 repository is available here : https://www.opcoach.com/repository/2019-12/
-
Runner in Eclipse
To run the tests within an Eclipse configuration, use a JUnit Plugin-Test and select the com.opcoach.e4tester.core.product in the main tab and select 'Run in UI Thread' in the first tab. -
Target Platform
To add E4 Tester in your target platform (tpd editor), use these 3 lines :
location "https://www.opcoach.com/repository/2019-12" {
com.opcoach.e4tester.feature.feature.group
} -
POM Configuration
To run E4Tester from your POM File copy the following code in the test fragment pom file (also compliant for Mac OS ) :
<!-- For mac os, must use a specific configuration to manage the SWT Thread in UI Tests ! -->
<profiles>
<profile>
<id>macosx</id>
<activation>
<os><name>mac os x</name><family>mac</family></os>
</activation>
<properties>
<ui.test.vmargs>-XstartOnFirstThread</ui.test.vmargs>
</properties>
</profile>
<profile>
<id>other-os</id>
<activation>
<os><name>not-mac</name><family>!mac</family></os>
</activation>
<properties>
<ui.test.vmargs></ui.test.vmargs>
</properties>
</profile>
</profiles>
<build>
<plugins>
<!-- Copy exactly this build block in each plugin test pom (in build/plugins)
or once in your parent pom if there are no other tests -->
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<!-- See https://www.eclipse.org/tycho/sitedocs/tycho-surefire-plugin/test-mojo.html -->
<useUIHarness>true</useUIHarness>
<useUIThread>false</useUIThread>
<application>com.opcoach.e4tester.core.tychoRunnerApplication
</application>
<product>com.opcoach.e4tester.core.product</product>
<argLine>${ui.test.vmargs}</argLine>
</configuration>
</plugin>
</plugins>
</build>