Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » SWTBot fails with"swtbottestapplication" could not be found in the registry
SWTBot fails with"swtbottestapplication" could not be found in the registry [message #33316] Fri, 24 April 2009 02:56 Go to next message
sapatos is currently offline sapatos
Messages: 1
Registered: July 2009
Junior Member
Hi,

My swtbot test is failing with :

!SESSION 2009-04-24 12:35:33.207
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_10
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_AU
Framework arguments: -version 3 -port 4297 -testLoaderClass
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoade r
-loaderpluginname org.eclipse.jdt.junit.runtime -classNames
com.mgl.yearendtax.userinterface.application.swtbot.FundMana gerViewerTest
-application org.eclipse.swtbot.eclipse.core.swtbottestapplication
-product com.mgl.bfs.desktop.BFSIntegratedDesktop -testpluginname
com.mgl.yearendtax.userinterface
Command-line arguments: -os win32 -ws win32 -arch x86 -version 3 -port
4297 -testLoaderClass
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoade r
-loaderpluginname org.eclipse.jdt.junit.runtime -classNames
com.mgl.yearendtax.userinterface.application.swtbot.FundMana gerViewerTest
-application org.eclipse.swtbot.eclipse.core.swtbottestapplication
-product com.mgl.bfs.desktop.BFSIntegratedDesktop -data
C:\workspace/../junit-workspace -dev
file:C:/workspace/.metadata/.plugins/org.eclipse.pde.core/pd e-junit/dev.properties
-os win32 -ws win32 -arch x86 -testpluginname
com.mgl.yearendtax.userinterface

!ENTRY org.eclipse.osgi 4 0 2009-04-24 12:35:34.176
!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:
com.mgl.bfs.desktop.application, org.eclipse.equinox.app.error,
org.eclipse.pde.junit.runtime.uitestapplication,
org.eclipse.pde.junit.runtime.legacytestapplication,
org.eclipse.pde.junit.runtime.coretestapplication,
org.eclipse.pde.junit.runtime.coretestapplicationnonmain.
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:386)
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: 549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)

I've seen a similar post previous and it was suggested that the target
platform did not contain
org.eclipse.swtbot.eclipse.core_2.0.0.204-dev.jar. Mine does.

I also saw that the final fix was to set the execution environment to java
1.6, however mine is already 1.6. Anyone have any ideas?
Re: SWTBot fails with"swtbottestapplication" could not be found in the registry [message #33551 is a reply to message #33316] Fri, 24 April 2009 07:36 Go to previous messageGo to next message
Hans Schwaebli is currently offline Hans Schwaebli
Messages: 70
Registered: July 2009
Member
I had such an error too when I automated SWTBot build & test.

But now I don't know anymore what the reason was for that error.

Maybe this approach helps you to discover the reason, if it works running
from Eclipse, but not from command-line:

Run the test in debug mode in Eclipse and set a breakpoint very early. In
the debug perspective there is a debug view which shows the process. Right
click on it and select "Properties" from the context menu. Then you see
the start command including all the parameters. Compare it against the
ones you use.

If the problem occurs in Eclipse, then I suggest to download SWTBot from
its repository: svn co
http://dev.eclipse.org/svnroot/technology/org.eclipse.swtbot /trunk swtbot
Follow /swtbot/org.eclipse.swtbot.releng/readme.txt to materialize
workspace and set your target platform to that workspace. Then run
"org.eclipse.swtbot.eclipse.finder.test" as "SWTBot Test". This should
work. Compare now the working instance with the one which throws the
error, to find why it occurs.

When this is fixed, it normally does not trouble ever again (my
experience).
Re: SWTBot fails with"swtbottestapplication" could not be found in the registry [message #33710 is a reply to message #33316] Fri, 24 April 2009 16:16 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan Padegaonkar
Messages: 873
Registered: July 2009
Senior Member
sapatos wrote:
> "org.eclipse.swtbot.eclipse.core.swtbottestapplication" could not be
> found in the registry. The applications available are:

Probably you do not have org.eclipse.swtbot.eclipse.core in the target
eclipse.

-- Ketan
Re: SWTBot fails with"swtbottestapplication" could not be found in the registry [message #529846 is a reply to message #33710] Tue, 27 April 2010 13:05 Go to previous message
Markus is currently offline Markus
Messages: 2
Registered: April 2010
Location: Austria
Junior Member
Hi Ketan!

sapatos wrote:
> I've seen a similar post previous and it was suggested that
> the target platform did not contain
> org.eclipse.swtbot.eclipse.core_2.0.0.204-dev.jar. Mine does.
>
> I also saw that the final fix was to set the execution
> environment to java 1.6, however mine is already 1.6.
> Anyone have any ideas?

As I have the same problem I would be interessted in the problems solution as well ...

kind regards, Markus
Previous Topic:SWTBot
Next Topic:Is there no more eclipse spy-bot view?
Goto Forum:
  


Current Time: Thu Oct 23 16:00:48 GMT 2014

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

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