Menu

#256 MenuTester.actionClickItem(...) fails to function properly

open
nobody
SWT (37)
5
2008-03-05
2008-03-05
No

The abbot.swt.tester.MenuTester.actionClickItem(Menu,String,String) method fails to select menu items when the delimiter is given as "->".

When I tried to select "File->P&references..." from the main menu of a RCP app, the Abbot SWT plug-in failed with the following message.

Stuck menu (bar: true): Menu {&Open, |, &View Log, &Installation History, View Installed &Packages, |, P&references..., |, E&xit, |, Con&vert Line Delimiters To, |, Open File&...}

I changed the delimiter to "/" and reran the same test and the particular menu option was successfully selected this time.

Note that I was executing the particular test with abbot.swt-2522.0.0.zip so far and the abbot.swt.tester.MenuTester.actionClickItem(Menu,String,String) method had no trouble with selecting the corresponding menu items even when the delimiter was given as "->". It looks like Abbot SWT version 0.1.0.20080305_1254 (the latest to-date) has a bug preventing the above method to function as it was used to in the past (regression defect).

The same bug may have been affecting selections of Tree Items (following method) as well:
TreeTester.actionCheckItem(Tree, String, String, boolean)

Discussion