Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Problem with "SWTBot Test"
Problem with "SWTBot Test" [message #35635] Tue, 19 May 2009 10:51 Go to next message
Kai Schlamp is currently offline Kai SchlampFriend
Messages: 344
Registered: July 2009
Senior Member
Hello.

Until now I added my SWTBot tests to "JUnit Plug-In Test". Now I just
tried to add it under "SWTBot Test" in the "Run Configurations" dialog.
I use the exact same configuration, but I get an exception when I try to
run that test (on the other side, the JUnit- Plug-in Test runs fine).
Why do I get that exception? What am I doing wrong?
And is there an advantage of adding the test to "SWTBot Test" instead of
adding it to "JUnit Plug-In Test"?

Regards,
Kai

An internal error occurred during: "Launching ProjectSetupTest".

Stack Trace:
java.lang.NoSuchMethodError:
org.eclipse.pde.internal.ui.launcher.LaunchPluginValidator.g etPluginsToRun(Lorg/eclipse/debug/core/ILaunchConfiguration; )Ljava/util/Map;
at
org.eclipse.swtbot.eclipse.ui.JUnitLaunchConfigurationDelega te.preLaunchCheck(JUnitLaunchConfigurationDelegate.java:347)
at
org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDeleg ate.launch(JUnitLaunchConfigurationDelegate.java:112)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:853)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:703)
at
org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(D ebugUIPlugin.java:866)
at
org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlu gin.java:1069)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Re: Problem with "SWTBot Test" [message #35669 is a reply to message #35635] Tue, 19 May 2009 10:52 Go to previous messageGo to next message
Kai Schlamp is currently offline Kai SchlampFriend
Messages: 344
Registered: July 2009
Senior Member
Oh forgot to say ... using Eclipse 3.5 RC1 (but the problem also occured
in earlier versions) and current SWTBot from the Update Site.

Kai Schlamp wrote:
> Hello.
>
> Until now I added my SWTBot tests to "JUnit Plug-In Test". Now I just
> tried to add it under "SWTBot Test" in the "Run Configurations" dialog.
> I use the exact same configuration, but I get an exception when I try to
> run that test (on the other side, the JUnit- Plug-in Test runs fine).
> Why do I get that exception? What am I doing wrong?
> And is there an advantage of adding the test to "SWTBot Test" instead of
> adding it to "JUnit Plug-In Test"?
>
> Regards,
> Kai
>
> An internal error occurred during: "Launching ProjectSetupTest".
>
> Stack Trace:
> java.lang.NoSuchMethodError:
> org.eclipse.pde.internal.ui.launcher.LaunchPluginValidator.g etPluginsToRun(Lorg/eclipse/debug/core/ILaunchConfiguration; )Ljava/util/Map;
>
> at
> org.eclipse.swtbot.eclipse.ui.JUnitLaunchConfigurationDelega te.preLaunchCheck(JUnitLaunchConfigurationDelegate.java:347)
>
> at
> org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDeleg ate.launch(JUnitLaunchConfigurationDelegate.java:112)
>
> at
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:853)
>
> at
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:703)
>
> at
> org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(D ebugUIPlugin.java:866)
>
> at
> org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlu gin.java:1069)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Re: Problem with "SWTBot Test" [message #35737 is a reply to message #35635] Tue, 19 May 2009 11:51 Go to previous message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
http://www.eclipse.org/newsportal/article.php?id=632&gro up=eclipse.swtbot#632

On 19/5/09 16:21, Kai Schlamp wrote:
> Hello.
>
> Until now I added my SWTBot tests to "JUnit Plug-In Test". Now I just
> tried to add it under "SWTBot Test" in the "Run Configurations" dialog.
> I use the exact same configuration, but I get an exception when I try to
> run that test (on the other side, the JUnit- Plug-in Test runs fine).
> Why do I get that exception? What am I doing wrong?
> And is there an advantage of adding the test to "SWTBot Test" instead of
> adding it to "JUnit Plug-In Test"?
>
> Regards,
> Kai
>
> An internal error occurred during: "Launching ProjectSetupTest".
>
> Stack Trace:
> java.lang.NoSuchMethodError:
> org.eclipse.pde.internal.ui.launcher.LaunchPluginValidator.g etPluginsToRun(Lorg/eclipse/debug/core/ILaunchConfiguration; )Ljava/util/Map;
>
> at
> org.eclipse.swtbot.eclipse.ui.JUnitLaunchConfigurationDelega te.preLaunchCheck(JUnitLaunchConfigurationDelegate.java:347)
>
> at
> org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDeleg ate.launch(JUnitLaunchConfigurationDelegate.java:112)
>
> at
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:853)
>
> at
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:703)
>
> at
> org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(D ebugUIPlugin.java:866)
>
> at
> org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlu gin.java:1069)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Previous Topic:Back in action
Next Topic:problem clicks and doubleclicks on table cells
Goto Forum:
  


Current Time: Mon Dec 22 18:45:07 GMT 2014

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

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