Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Jubula » Click on item in already opened context menu
Click on item in already opened context menu [message #947946] Wed, 17 October 2012 15:50 Go to next message
Andreas Scharf is currently offline Andreas Scharf
Messages: 21
Registered: December 2011
Junior Member
Hi,

we are using jubulas drag and drop actions to test our GEF based diagram editor. As a side-effect of this dnd operation, a context menu will be opened after the drop step.

We didn't find a way to select an item in an already opened context menu. Did I miss something? Currently we are using the arrow-key workaround mention by Oliver. However this leads to very unstable tests because we are specifying the tests on a windows machine and running them on a linux box: The number of times the down-arrow key has to pressed differs from windows to linux (on windows the first item of the context menu is already selected whereas on linux it is not).

Any recommendations?

Best regards,
Andreas
Re: Click on item in already opened context menu [message #953750 is a reply to message #947946] Mon, 22 October 2012 14:00 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra Schladebeck
Messages: 1155
Registered: July 2009
Senior Member
Hi,

You didn't miss anything, no. There's currently no separate action to select from an already open context menu. After a quick chat with the guys, we have two ideas-
1. If you don't want to extend Jubula, then you could perhaps link modifier key presses during drag and drop to specific options in the context menu (which would be a change to the AUT)
2. You could extend the "Application" component to select from an already open context menu. There shouldn't be any problem with this, it's just that we haven't done it. The place in the code to look would be:
http://git.eclipse.org/c/jubula/org.eclipse.jubula.core.git/tree/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/implclasses/AbstractControlImplClass.java#n461

According to Markus, you could implement the action analogously to this, just without the showPopup().

HTH,
Alex (and Markus)
Re: Click on item in already opened context menu [message #957639 is a reply to message #953750] Thu, 25 October 2012 11:30 Go to previous messageGo to next message
Andreas Scharf is currently offline Andreas Scharf
Messages: 21
Registered: December 2011
Junior Member
Hi Alex,

thanks for the detailed information! I'll have a look at 2).

Best regards,
Andreas
Re: Click on item in already opened context menu [message #989078 is a reply to message #947946] Tue, 04 December 2012 14:47 Go to previous messageGo to next message
Andreas Scharf is currently offline Andreas Scharf
Messages: 21
Registered: December 2011
Junior Member
Just wanted to mention that I implemented the feature and opened the corresponding eclipse bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=395719.

[Updated on: Tue, 04 December 2012 14:50]

Report message to a moderator

Re: Click on item in already opened context menu [message #989087 is a reply to message #989078] Tue, 04 December 2012 15:12 Go to previous message
Alexandra Schladebeck is currently offline Alexandra Schladebeck
Messages: 1155
Registered: July 2009
Senior Member
Thanks for the update and for the enhancement!
Previous Topic: Jubula UI Tests with multiple developers
Next Topic:Using swt toolkit
Goto Forum:
  


Current Time: Sat Oct 25 12:05:38 GMT 2014

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

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