Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » STWBot Launch Delegate - Helios
STWBot Launch Delegate - Helios [message #661049] Tue, 22 March 2011 21:56 Go to next message
Jessica Deery is currently offline Jessica DeeryFriend
Messages: 2
Registered: March 2011
Junior Member
Hello,

I am migrating some test plugins that use swtbot to helios. However, I am unable to run my tests with the IDE's SWTBot Test launch delegate. This worked with an older version of eclipse. When I use the launch delegate, I get the error:
Plug-in org.eclipse.swtbot.eclipse.ui was unable to load class org.eclipse.pde.internal.ui.launcher.PDEMigrationDelegate.

It appears that PDEMigrationDelegate has moved to org.eclipse.pde.internal.launching.launcher.PDEMigrationDele gate which is part of org.eclipse.pde.launching.

Is this a bug?

I was able to work around this by tweaking the plugin xml to remove the reference to PDEMigrationDelegate. However, I then noticed that parts of my tests were unexpectedly failing. For example, the following click caused my radio to end up in a strange state:
bot.radio("some button").click();

I was able to workaround this by calling:
// Create the trace configuration file based on manual selection.
SWTBotRadio someRadio = bot.radio("some button.");
someRadio.setFocus();
someRadio.click();

However, it is not clear to me why I now need this extra setFocus when running the test under helios. Any ideas?

Thanks,
Jessica Deery
Re: STWBot Launch Delegate - Helios [message #661254 is a reply to message #661049] Wed, 23 March 2011 17:18 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
These seem likely bugs that were introduced. Could you file bugs for the
2 issues and I'll have a look at it.

--
Ketan
http://ketan.padegaonkar.name | http://eclipse.org/swtbot | @ketanpkr

On 3/22/11 2:56 PM, Jessica Deery wrote:
> Hello,
>
> I am migrating some test plugins that use swtbot to helios. However, I
> am unable to run my tests with the IDE's SWTBot Test launch delegate.
> This worked with an older version of eclipse. When I use the launch
> delegate, I get the error:
> Plug-in org.eclipse.swtbot.eclipse.ui was unable to load class
> org.eclipse.pde.internal.ui.launcher.PDEMigrationDelegate.
>
> It appears that PDEMigrationDelegate has moved to
> org.eclipse.pde.internal.launching.launcher.PDEMigrationDele gate which
> is part of org.eclipse.pde.launching.
>
> Is this a bug?
>
> I was able to work around this by tweaking the plugin xml to remove the
> reference to PDEMigrationDelegate. However, I then noticed that parts of
> my tests were unexpectedly failing. For example, the following click
> caused my radio to end up in a strange state:
> bot.radio("some button").click();
>
> I was able to workaround this by calling:
> // Create the trace configuration file based on manual selection.
> SWTBotRadio someRadio = bot.radio("some button.");
> someRadio.setFocus();
> someRadio.click();
>
> However, it is not clear to me why I now need this extra setFocus when
> running the test under helios. Any ideas?
>
> Thanks,
> Jessica Deery
>
Re: STWBot Launch Delegate - Helios [message #661280 is a reply to message #661254] Wed, 23 March 2011 20:44 Go to previous message
Jessica Deery is currently offline Jessica DeeryFriend
Messages: 2
Registered: March 2011
Junior Member
Logged 340804 and 340808.

Thanks!
Jessica
Previous Topic:SWTBot / Ant
Next Topic:Start SWTBot tests from within Buckminster on Eclipse Hudson
Goto Forum:
  


Current Time: Mon Dec 22 01:24:21 GMT 2014

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

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