Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Can't test RCP application
Can't test RCP application [message #33922] Mon, 27 April 2009 22:37 Go to next message
Eric Jain is currently offline Eric JainFriend
Messages: 266
Registered: July 2009
Senior Member
I just installed SWTBot 2.0.0.204 (Eclipse + SWT features) into Eclipse
3.5M6.

If I try to run a simple test (as a SWTBot Test) I get the following error:

!SESSION 2009-04-27 15:30:52.781
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_11
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -version 3 -port 3866 -testLoaderClass
org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader -loaderpluginname
org.eclipse.jdt.junit4.runtime -classNames ProjectEditorTest -application
org.eclipse.swtbot.eclipse.core.swtbottestapplication -product
org.fhcrc.gems.client.product -testpluginname org.fhcrc.gems.client.test
Command-line arguments: -os win32 -ws win32 -arch x86 -version 3 -port
3866 -testLoaderClass
org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader -loaderpluginname
org.eclipse.jdt.junit4.runtime -classNames ProjectEditorTest -application
org.eclipse.swtbot.eclipse.core.swtbottestapplication -product
org.fhcrc.gems.client.product -data ../junit-workspace -dev
file:../Eclipse/.metadata/.plugins/org.eclipse.pde.core/pde- junit/dev.properties
-os win32 -ws win32 -arch x86 -testpluginname test.client

!ENTRY org.eclipse.osgi 4 0 2009-04-27 15:30:59.156
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: Application
"org.eclipse.swtbot.eclipse.core.swtbottestapplication" could not be found
in the registry. The applications available are:
org.eclipse.ant.core.antRunner, org.eclipse.equinox.app.error,
org.eclipse.equinox.p2.artifact.repository.mirrorApplication ,
org.eclipse.equinox.p2.metadata.repository.mirrorApplication ,
org.eclipse.help.base.infocenterApplication,
org.eclipse.help.base.helpApplication, org.eclipse.help.base.indexTool,
org.eclipse.pde.junit.runtime.uitestapplication,
org.eclipse.pde.junit.runtime.legacytestapplication,
org.eclipse.pde.junit.runtime.coretestapplication,
org.eclipse.pde.junit.runtime.coretestapplicationnonmain,
org.eclipse.pde.junit.runtime.nonuithreadtestapplication,
org.fhcrc.gems.client.application.
at
org.eclipse.equinox.internal.app.EclipseAppContainer.startDe faultApp(EclipseAppContainer.java:242)
at
org.eclipse.equinox.internal.app.MainApplicationLauncher.run (MainApplicationLauncher.java:29)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 556)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:511)
at org.eclipse.equinox.launcher.Main.run(Main.java:1284)
at org.eclipse.equinox.launcher.Main.main(Main.java:1260)

Any idea what's missing here? The active Eclipse instance is set as the
target platform, and the org.eclipse.swtbot.* plug-ins appear in the
registry.
Re: Can't test RCP application [message #33948 is a reply to message #33922] Tue, 28 April 2009 04:02 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
http://wiki.eclipse.org/SWTBot/Troubleshooting

-- Ketan

On 28/4/09 04:07, Eric Jain wrote:
> I just installed SWTBot 2.0.0.204 (Eclipse + SWT features) into Eclipse
> 3.5M6.
>
> If I try to run a simple test (as a SWTBot Test) I get the following error:
>
> !SESSION 2009-04-27 15:30:52.781
> -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.6.0_11
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
> Framework arguments: -version 3 -port 3866 -testLoaderClass
> org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader
> -loaderpluginname org.eclipse.jdt.junit4.runtime -classNames
> ProjectEditorTest -application
> org.eclipse.swtbot.eclipse.core.swtbottestapplication -product
> org.fhcrc.gems.client.product -testpluginname org.fhcrc.gems.client.test
> Command-line arguments: -os win32 -ws win32 -arch x86 -version 3 -port
> 3866 -testLoaderClass
> org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader
> -loaderpluginname org.eclipse.jdt.junit4.runtime -classNames
> ProjectEditorTest -application
> org.eclipse.swtbot.eclipse.core.swtbottestapplication -product
> org.fhcrc.gems.client.product -data ../junit-workspace -dev
> file:../Eclipse/.metadata/.plugins/org.eclipse.pde.core/pde- junit/dev.properties
> -os win32 -ws win32 -arch x86 -testpluginname test.client
>
> !ENTRY org.eclipse.osgi 4 0 2009-04-27 15:30:59.156
> !MESSAGE Application error
> !STACK 1
> java.lang.RuntimeException: Application
> "org.eclipse.swtbot.eclipse.core.swtbottestapplication" could not be
> found in the registry. The applications available are:
> org.eclipse.ant.core.antRunner, org.eclipse.equinox.app.error,
> org.eclipse.equinox.p2.artifact.repository.mirrorApplication ,
> org.eclipse.equinox.p2.metadata.repository.mirrorApplication ,
> org.eclipse.help.base.infocenterApplication,
> org.eclipse.help.base.helpApplication, org.eclipse.help.base.indexTool,
> org.eclipse.pde.junit.runtime.uitestapplication,
> org.eclipse.pde.junit.runtime.legacytestapplication,
> org.eclipse.pde.junit.runtime.coretestapplication,
> org.eclipse.pde.junit.runtime.coretestapplicationnonmain,
> org.eclipse.pde.junit.runtime.nonuithreadtestapplication,
> org.fhcrc.gems.client.application.
> at
> org.eclipse.equinox.internal.app.EclipseAppContainer.startDe faultApp(EclipseAppContainer.java:242)
>
> at
> org.eclipse.equinox.internal.app.MainApplicationLauncher.run (MainApplicationLauncher.java:29)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 556)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:511)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1284)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1260)
>
> Any idea what's missing here? The active Eclipse instance is set as the
> target platform, and the org.eclipse.swtbot.* plug-ins appear in the
> registry.
>
>
Re: Can't test RCP application [message #34069 is a reply to message #33948] Tue, 28 April 2009 05:09 Go to previous message
Eric Jain is currently offline Eric JainFriend
Messages: 266
Registered: July 2009
Senior Member
Ketan Padegaonkar wrote:
> http://wiki.eclipse.org/SWTBot/Troubleshooting

Thanks, now it's working... I had only added the dependencies mentioned in
http://wiki.eclipse.org/SWTBot/UserGuide#Executing_SWTBot_Te sts_for_Eclipse_Plugins.
Previous Topic:Poll delay
Next Topic:Problem with SWTBotEclipseEdittor
Goto Forum:
  


Current Time: Fri Apr 19 16:02:48 GMT 2024

Powered by FUDForum. Page generated in 0.02160 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top