Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » How to differentiate between menu entries with the same name
How to differentiate between menu entries with the same name [message #1774087] Tue, 10 October 2017 11:35 Go to next message
Kim Triebig is currently offline Kim TriebigFriend
Messages: 3
Registered: October 2017
Junior Member
In our eclipse based application there exists a menu entry "Find References" for most editors. However this entry alreadys exists in the Xtend editor so now there are two entries with the same name.

Is there any way to specifically select one or the other when using the RCP Testing Tool? Using "get-menu -path "Find References" | click" will click on the first entry and so far I haven't found a way to select the other "Find Reference" entry.
Re: How to differentiate between menu entries with the same name [message #1774138 is a reply to message #1774087] Tue, 10 October 2017 22:48 Go to previous messageGo to next message
Ulyana Skorokhodova is currently offline Ulyana SkorokhodovaFriend
Messages: 280
Registered: July 2014
Senior Member
Hi Kim,

You can use

get-menu -path "Find References" -index 1 | click 


to select a second one.

You can also use -after parameter to indicate the element after which the required menu item presents.

Kind regards,
Ulyana.
Re: How to differentiate between menu entries with the same name [message #1774188 is a reply to message #1774138] Wed, 11 October 2017 13:07 Go to previous messageGo to next message
Kim Triebig is currently offline Kim TriebigFriend
Messages: 3
Registered: October 2017
Junior Member
Ulyana Skorokhodova wrote on Tue, 10 October 2017 22:48
Hi Kim,

You can use

get-menu -path "Find References" -index 1 | click 


to select a second one.

You can also use -after parameter to indicate the element after which the required menu item presents.

Kind regards,
Ulyana.


Hi Ulyana,

thanks for your quick answer. Unfortunately did your suggestion not work.
I tried using -index and also -after. However regardless of index it would always select the first "Find References" while -after "Find References" produced an error while running. Isn't there another way?
To be clear, here's a screenshot of the issue:
index.php/fa/30981/0/

Kind regards,
Kim
Re: How to differentiate between menu entries with the same name [message #1774486 is a reply to message #1774188] Mon, 16 October 2017 09:18 Go to previous messageGo to next message
Viktoria Dlugopolskaya is currently offline Viktoria DlugopolskayaFriend
Messages: 109
Registered: March 2017
Senior Member
Hi Kim,

Sorry for misleading you. 'after' parameter is not supported by 'get-menu' command, so it produces the error.
We've added support for 'index' parameter for 'get-menu' command, so items with non-unique names will be recorded with indexes and replayed correctly.
Please, try with the latest nightly build: https://eclipse.org/rcptt/download/
Re: How to differentiate between menu entries with the same name [message #1774658 is a reply to message #1774486] Wed, 18 October 2017 11:25 Go to previous message
Kim Triebig is currently offline Kim TriebigFriend
Messages: 3
Registered: October 2017
Junior Member
Thx, with the lastest nightly build it actually worked :)
Previous Topic:RCPTT - Execute test cases in background
Next Topic:Failed to close report node: Connection reset
Goto Forum:
  


Current Time: Tue Jun 19 22:24:02 GMT 2018

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

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

Back to the top