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: 50
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: Tue Apr 23 13:43:04 GMT 2024

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

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

Back to the top