Automated Tests with Eclipse 3.3

WindowTester allows you to easily create and run unit tests for every GUI they build. It can also be used to generate system level tests.

Moderators: gnebling, Eric Clayberg, Dan Rubel, keertip, Phil Quitslund

Automated Tests with Eclipse 3.3

Postby tmseidel » Wed Jan 16, 2008 12:27 pm


I've taken a look at your ant example for automated rcp testing. The script worked great, so I tried to use it also for Eclipse 3.3 RCPs. I downloaded the WindowTester Runtime for 3.3. on ... on/latest/

I created a minimalistic RCP (Mail-Template), created a second plugin, recorded a simple TestCase, added a suite and exported all that stuff. I modified the test.xml/ and the test-macros to start the application via Equinox Launcher.

If I execute the file script the folder structure is generated but the platform is not able to start. I just get this this log in /scratch/configuration
Code: Select all
!SESSION 2008-01-16 21:57:24.734 -----------------------------------------------
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Framework arguments:  -noupdate,C:\test/output/MailTest/test-result.xml -application org.eclipse.test.ui.testapplication -testPluginName de.spiritlink.mail.test -classname de.spiritlink.mail.test.AllTests -verbose -testApplication mailexample.application
Command-line arguments:  -clean -noupdate -dev bin -data C:\test/scratch/MailTest/workspace,C:\test/output/MailTest/test-result.xml -application org.eclipse.test.ui.testapplication -testPluginName de.spiritlink.mail.test -classname de.spiritlink.mail.test.AllTests -verbose -consolelog -testApplication mailexample.application

!ENTRY org.eclipse.osgi 4 0 2008-01-16 21:57:25.609
!MESSAGE Application error
java.lang.RuntimeException: Application "org.eclipse.test.ui.testapplication" could not be found in the registry. The applications available are: mailexample.application,
   at org.osgi.util.tracker.ServiceTracker$Tracked.trackAdding(
   at org.osgi.util.tracker.ServiceTracker$Tracked.track(
   at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(
   at org.eclipse.osgi.framework.internal.core.FilteredServiceListener.serviceChanged(
   at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(
   at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(
   at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(
   at org.eclipse.osgi.framework.internal.core.Framework.publishServiceEventPrivileged(
   at org.eclipse.osgi.framework.internal.core.Framework.publishServiceEvent(
   at org.eclipse.osgi.framework.internal.core.ServiceRegistrationImpl.<init>(
   at org.eclipse.osgi.framework.internal.core.BundleContextImpl.createServiceRegistration(
   at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(
   at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
   at java.lang.reflect.Method.invoke(
   at org.eclipse.equinox.launcher.Main.invokeFramework(
   at org.eclipse.equinox.launcher.Main.basicRun(
   at org.eclipse.equinox.launcher.Main.main(

I also tried to copy the plugins into the application-folder instead of linking. Do you have any advices?

Thanks for your help,
Tom Seidel
Posts: 2
Joined: Wed Nov 14, 2007 2:36 am

Re: Automated Tests with Eclipse 3.3

Postby blacksmith » Thu Jan 17, 2008 5:58 pm

Could you submit this information to This will put this into our support queue. I will start to look at this and see if I can reproduce the issue.

Mark Russell
Build Master
Instantiations, Inc.
Posts: 19
Joined: Fri Apr 28, 2006 6:57 am
Location: Portersville, PA USA

Re: Automated Tests with Eclipse 3.3

Postby tmseidel » Fri Feb 01, 2008 1:07 am

I found a solution that works for me. The plugin org.eclipse.test has a dependency to org.eclipse.ui.ide.application. This plugin is neither used in the plugins source nor it is shipped by a rcp that uses its own product-configuration. Removing this dependency solves all problems.

Posts: 2
Joined: Wed Nov 14, 2007 2:36 am

Re: Automated Tests with Eclipse 3.3

Postby Phil Quitslund » Fri Feb 01, 2008 8:52 am

Cool, I bet this will come in handy. Thanks for following up!
Phil Quitslund
Software Engineer
Google, Inc.
Phil Quitslund
Posts: 491
Joined: Fri Apr 28, 2006 6:26 am

Return to Window Tester

Who is online

Users browsing this forum: No registered users and 1 guest