Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » How to verify that menu items contains a separator
How to verify that menu items contains a separator [message #1745649] Thu, 13 October 2016 23:39
smaoui asma is currently offline smaoui asmaFriend
Messages: 33
Registered: July 2009
Location: Paris Saclay, France
Member
Hello,

I have a menu ( can not add assertion to it during record) and I would like to verify that the list of menuItems did not contain a separator.

I can check that some menuitem is a separator

//get-menu -path "..." | get-property "getParent().getItems().MenuItem[3].getStyle()" -raw | equals "[SEPARATOR]" | verify-true

but I would like to check if a seprator exist or not in the list of menuitems

something like

get-menu -path "..." | get-property "getParent().getItems().getStyle()" -raw | to-list | contains "[SEPARATOR]" | verify-true

but this did not compile, no getStyle() property found for getitems().

Thank you


Previous Topic:Testing the e4 RCP sample programm
Next Topic:Failed to find org.eclipse.rcptt.tesla.swt.rap.workbenchProvider extension.
Goto Forum:
  


Current Time: Fri Nov 16 00:54:26 GMT 2018

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

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

Back to the top