Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » wrong menu on eclipse-rcp applicaton(when i start an swtbot test i have the wrong menu on my eclipse rcp )
wrong menu on eclipse-rcp applicaton [message #534669] Wed, 19 May 2010 15:40 Go to next message
gregor  is currently offline gregor
Messages: 8
Registered: May 2010
Junior Member
hi,

i have a eclipse rcp that i want to test with swtbot. i followed the german tutorial from http://www.ralfebert.de/rcpbuch/swtbot/
now i have the problem that my eclipse rcp starts but has the wrong menu. when i run the app directly from eclipse i have no problem (run without junit).
i also read other tutorials but i have the same behaviour.

what can be the problem?

greetings from austria
gregor
Re: wrong menu on eclipse-rcp applicaton [message #534676 is a reply to message #534669] Wed, 19 May 2010 16:14 Go to previous messageGo to next message
gregor  is currently offline gregor
Messages: 8
Registered: May 2010
Junior Member
i found an strange behaviour.
when i change something in the gui and rerun the app i see the changes. so when i start the swtbot test it looks like the old gui. then i build the project over eclipse again, button "build project". now in the swtbot test i see the changed gui.

is it possible that something is wrong with my project properties?

gregor
Re: wrong menu on eclipse-rcp applicaton [message #535320 is a reply to message #534669] Sat, 22 May 2010 05:14 Go to previous messageGo to next message
gregor  is currently offline gregor
Messages: 8
Registered: May 2010
Junior Member
i checked the problem again and had the following problem. in the rcp client i have an login splashhandler. when i turn the login off or on the swtbot-test irgnore the changes and always starts the application with the wrong menu and no loginscreen.
Re: wrong menu on eclipse-rcp applicaton [message #535341 is a reply to message #534669] Sat, 22 May 2010 10:28 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan Padegaonkar
Messages: 873
Registered: July 2009
Senior Member
On 5/19/10 12:40 PM, gregor wrote:
> hi,
>
> i have a eclipse rcp that i want to test with swtbot. i followed the
> german tutorial from http://www.ralfebert.de/rcpbuch/swtbot/
> now i have the problem that my eclipse rcp starts but has the wrong
> menu. when i run the app directly from eclipse i have no problem (run
> without junit).

Could you explain more on what you mean by 'application has wrong menu'?
What is it that you expect to see, and what is it that you actually see.

--
Ketan
http://ketan.padegaonkar.name | http://eclipse.org/swtbot
Re: wrong menu on eclipse-rcp applicaton [message #535424 is a reply to message #535341] Sun, 23 May 2010 08:22 Go to previous message
gregor  is currently offline gregor
Messages: 8
Registered: May 2010
Junior Member
these are the menu when i start the application from eclipse "->run as->eclipse application"
http://pickhost.eu/images/0003/5775/menu_correct.png

these are the menu when i start the junit testclass from eclipse "->run as->junit plug-in test"
http://pickhost.eu/images/0003/5776/menu_wrong.png

on the menu when i click on "fenster" and oben the perspective menu i get the eclipse perspectives and not the perspectives from my application.

in the runconfig i have these settings:
- test->test runner: junit 4
- test->run in ui thread -> disabled
- main->program to run->run a product: "the name of my product"

gregor
Previous Topic:Problems with Tree behaviour and some dialogs
Next Topic:Would you like to try scripting SWTBot ?
Goto Forum:
  


Current Time: Thu Aug 28 05:15:44 EDT 2014

Powered by FUDForum. Page generated in 0.01851 seconds