Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Bug in version 2.0.0.329 ?
Bug in version 2.0.0.329 ? [message #37740] Fri, 29 May 2009 14:35 Go to next message
Pavel Cybulskij is currently offline Pavel CybulskijFriend
Messages: 21
Registered: July 2009
Junior Member
Hello,

since i have installed the new bot version 2.0.0.329, a simple button
click doesn't funktion any more :-( (e.g. bot.button("bla").click()).
I have reset to the older version (.187), and it functions ok as before ...
Is it a bug, or i made something wrong by update?

This is the exception of .329:

org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click()Lo rg/eclipse/swtbot/swt/finder/widgets/SWTBotButton;

java.lang.NoSuchMethodError:
org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click()Lo rg/eclipse/swtbot/swt/finder/widgets/SWTBotButton;
at
de.cenit.eb.sm.finca.gui.test.serverconfperspective.TestsFor PluginConfigurationView.testInitButtonsAndMenues(Unknown
Source)
at
org.eclipse.swtbot.swt.finder.SWTBotTestCase.runBare(SWTBotT estCase.java:228)
at
org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner .run(EclipseTestRunner.java:350)
at
org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner .run(EclipseTestRunner.java:208)
at
org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication .runTests(UITestApplication.java:190)
at
org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work benchTestable.java:68)
at java.lang.Thread.run(Unknown Source)
Re: Bug in version 2.0.0.329 ? [message #37834 is a reply to message #37740] Fri, 29 May 2009 17:34 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
No clue what's wrong here.

Are you able to run from the IDE? Did you setup your headless
environment correctly?

--
Ketan
http://studios.thoughtworks.com/twist | http://twitter.com/ketanpkr


On 29/5/09 20:05, Pavel Cybulskij wrote:
> Hello,
>
> since i have installed the new bot version 2.0.0.329, a simple button
> click doesn't funktion any more :-( (e.g. bot.button("bla").click()).
> I have reset to the older version (.187), and it functions ok as before ...
> Is it a bug, or i made something wrong by update?
>
> This is the exception of .329:
>
> org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click()Lo rg/eclipse/swtbot/swt/finder/widgets/SWTBotButton;
>
>
> java.lang.NoSuchMethodError:
> org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click()Lo rg/eclipse/swtbot/swt/finder/widgets/SWTBotButton;
>
> at
> de.cenit.eb.sm.finca.gui.test.serverconfperspective.TestsFor PluginConfigurationView.testInitButtonsAndMenues(Unknown
> Source)
> at
> org.eclipse.swtbot.swt.finder.SWTBotTestCase.runBare(SWTBotT estCase.java:228)
>
> at
> org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner .run(EclipseTestRunner.java:350)
>
> at
> org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner .run(EclipseTestRunner.java:208)
>
> at
> org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication .runTests(UITestApplication.java:190)
>
> at
> org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work benchTestable.java:68)
>
> at java.lang.Thread.run(Unknown Source)
>
>
Re: Bug in version 2.0.0.329 ? [message #38381 is a reply to message #37834] Mon, 08 June 2009 14:17 Go to previous messageGo to next message
Pavel Cybulskij is currently offline Pavel CybulskijFriend
Messages: 21
Registered: July 2009
Junior Member
Hello Ketan,

it's me again with my Problem in SWTBotButton.click().
I'm starting swtbot always via ant script. I have already updated to
version .340 (inclusive "Headless Testing Framework"), but the problem
remains the same! :-(
Funnily enough the fact, that ONLY the method button("bla").click()
doesn't function in versions .329 and .340 (it throws still Exception
'NoSuchMethodError'). The other methods of button (e.g. .getText() or
setFocus() function well in new versions!) In v.187 ALL functions are OK!
HELP please!!! :-)
Do you have any documentation for swtbot? i didn't found it on your site
... :-(

Bye,
Pavel
Re: Bug in version 2.0.0.329 ? [message #38897 is a reply to message #38381] Mon, 15 June 2009 08:51 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
There may be no binary compatibility between those two versions, are you
running the same binaries of your source against different versions of
swtbot without recompiling them ?

If your source builds fine then it should execute fine unless the
binaries being used are different.

--
Ketan
http://studios.thoughtworks.com/twist | http://twitter.com/ketanpkr


On 8/6/09 19:47, Pavel Cybulskij wrote:
> Hello Ketan,
>
> it's me again with my Problem in SWTBotButton.click().
> I'm starting swtbot always via ant script. I have already updated to
> version .340 (inclusive "Headless Testing Framework"), but the problem
> remains the same! :-( Funnily enough the fact, that ONLY the method
> button("bla").click() doesn't function in versions .329 and .340 (it
> throws still Exception 'NoSuchMethodError'). The other methods of button
> (e.g. .getText() or setFocus() function well in new versions!) In v.187
> ALL functions are OK!
> HELP please!!! :-)
> Do you have any documentation for swtbot? i didn't found it on your site
> ... :-(
>
> Bye,
> Pavel
>
Re: Bug in version 2.0.0.329 ? [message #39543 is a reply to message #38897] Fri, 19 June 2009 11:10 Go to previous messageGo to next message
Pavel Cybulskij is currently offline Pavel CybulskijFriend
Messages: 21
Registered: July 2009
Junior Member
Finally i have solved this problem! All i needed was 'clear' by ant
relaunch. :-)

Ketan Padegaonkar wrote:

> There may be no binary compatibility between those two versions, are you
> running the same binaries of your source against different versions of
> swtbot without recompiling them ?

> If your source builds fine then it should execute fine unless the
> binaries being used are different.
Re: Bug in version 2.0.0.329 ? [message #39606 is a reply to message #39543] Fri, 19 June 2009 11:57 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Do you mean the -clear command line arg ? I'd recommend using a fresh
workspace and a fresh eclipse install for every new execution.

--
Ketan
http://studios.thoughtworks.com/twist | http://twitter.com/ketanpkr


On 19/6/09 16:40, Pavel Cybulskij wrote:
> Finally i have solved this problem! All i needed was 'clear' by ant
> relaunch. :-)
>
> Ketan Padegaonkar wrote:
>
>> There may be no binary compatibility between those two versions, are
>> you running the same binaries of your source against different
>> versions of swtbot without recompiling them ?
>
>> If your source builds fine then it should execute fine unless the
>> binaries being used are different.
>
>
>
Re: Bug in version 2.0.0.329 ? [message #39637 is a reply to message #39606] Fri, 19 June 2009 12:12 Go to previous message
Pavel Cybulskij is currently offline Pavel CybulskijFriend
Messages: 21
Registered: July 2009
Junior Member
i mean clear in Ant Build in eclipse (that i use):
Run/External Tools Config/Ant Build/myStartInitFile -> targets/clean ...
:-)


Ketan Padegaonkar wrote:

> Do you mean the -clear command line arg ? I'd recommend using a fresh
> workspace and a fresh eclipse install for every new execution.
Previous Topic:timing difficulties resolved by sleep -- is there a better way ?
Next Topic:tables in views
Goto Forum:
  


Current Time: Thu Apr 25 20:46:13 GMT 2024

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

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

Back to the top