FeaturesPluginsDocs & SupportCommunityPartners

Main Window Test Specification for NetBeans 4.1

Author: Marian Mirilovic
Last update: 04/19/2005
Introduction: Main window of NetBeans consists of two main parts. First part is menu and menu items, second are toolbars. Both - menu and toolbars - are customizable by user. For customization use Tools->Option.

Table of Contents

Test suite: Main Menus

Purpose: The UI is specified in UI specification http://ui.netbeans.org/docs/ui/ws/ws_spec.html#4 .
Setup: Start IDE with clear userdir in Compact Windows Mode (default).

#Test case [automated]Description
1Icons1. Go to main menu.
2. Try to open all menus.
EXPECTED RESULT: Only items representd actions shown also in toolbars have icons.
2Names of Menu Items1. Go to main menu.
2. Try to open menus.
EXPECTED RESULT: Menu items fit to Java LF e.g. only prepositions with four or more letters should be capitalized. Menu items followed by "..."(three dots) opens frame/window. Check that separators exist where applicable, assure that there aren't double separators in main menu or the last menu item isn't separator.
3Mnemonic Keys [Done] 1. Go to main menu.
2. Try to open menus and invoke actions only by mnemonic keys.
EXPECTED RESULT: Appropriate menu is opened or action invoked. Correct letter is underlined in menu. There are no duplicates of mnemonic key in one menu or submenu.
4Adding New Separator [Done] 1. Expand some menu node - e.g. "& File" and right click on it. Choose Add->Separator from popup menu.
2. Separator Move Up to destination where should be visible (not last item, nor beside another separator)
EXPECTED RESULT: Assure that it was added correctly (as last item under that node).
5Move Up/Down Separator [Done] 1. Try move up/down some separators in menu bar in Options. Right click for Move Up/Down in popup menu on separator node.
EXPECTED RESULT: Item is moved and look of menu is changed - check that appropriate menu was changed.
6Deleting Separator [Done] 1. Delete separator.
EXPECTED RESULT: Item is deleted and look of menu is changed - check that appropriate menu was changed.
7Cut / Copy / Paste Separator1. Perform Cut/Copy/Paste actions on some separator.
EXPECTED RESULT: Always check that it was handled properly in main menu.
8Check Mnemonic1. Check all default menus in Option window.
EXPECTED RESULT: There is "&" in front of mnemonic letter in menu.
9Adding New Menu [Done] 1. Choose Add Menu from popup on Menu Bar in Options window under IDE Configuration, Look and Feel
2. Type "Test Menu" into dialog that appears.
EXPECTED RESULT: New node is added in Option window and new menu appears in main menu.
10Change Order of Menus [Done] 1. Invoke Change Order... from popup on Menu Bar node in Options window under IDE Configuration, Look and Feel
2. Change order of main menu items with Move Up/Down buttons.
3. Finish pressing OK
EXPECTED RESULT: Menu order is changed according what you set.
11Deleting Menu [Done] 1. Delete menu.
EXPECTED RESULT: Item is deleted and look of menu is changed - check that appropriate menu disappeared.
12Cut / Copy / Paste Menu1. Perform Cut/Copy/Paste actions on some menu.
EXPECTED RESULT: Always check that action was handled properly - menu look changed.
13Rename Menu [Done] 1. Rename some menu node under Menu Bar in Options window, IDE Configuration, Look and Feel
EXPECTED RESULT: Node is renamed and menu name is changed in main menu too.
14Change Order of Menu Items1. Try move up/down some menu items under menu in Menu bar in Options. Right click for Move Up/Down in popup menu on menu item node.
EXPECTED RESULT: Item is moved and look of menu is changed - check that appropriate menu was changed.
15Deleting Menu Item [Done] 1. Delete menu.
EXPECTED RESULT: Item is deleted and look of menu is changed - check that appropriate menu disappeared.
16Cut / Copy / Paste1. Perform Cut/Copy/Paste actions on some menu item(s).
EXPECTED RESULT: Always check that action was handled properly - menu look changed.


Test suite: MainToolbars

Purpose: The scope of this spec is not to test a complete toolbar management. This spec defines only tests of the default actions in default toolbars, default toolbar configurations and ways how the user access' the currently existing toolbar management menu items.
Setup: Start IDE with clear userdir in Compact Windows Mode (default).

#Test case [automated]Description
1Check View | Toolbars menu1. Expand menu View | Toolbars
EXPECTED RESULT: The items of currently visible toolbars are checked.
2Check persistence between toolbar popup menu and main menu1. In main menu View | Toolbars enable Versioning toolbar and disable Debug toolbar
2. Push from main menu View | Toolbars | Small Toolbar icons
EXPECTED RESULT: Check persistence between popup menu over toolbars and main menu View | Toolbars
3Change configuration - persistence1. Push from main menu View | Toolbars
2. Enable Versioning toolbar and disable Debug toolbar
3. Push from main menu View | Toolbars | Small Toolbar icons
4. Restart the IDE.
EXPECTED RESULT: Check persistence between popup menu over toolbars and main menu View | Toolbars after restart of the IDE.
4Tooltip and contents1. Hold mouse over dragging area of each toolbar.
EXPECTED RESULT: Tooltip for each toolbar is shown and content of each toolbar is right and components are enabled and disabled correctly.
5Toolbars dragging1. Try to drag and move toolbars - e.g. change order of toolbars, place them in more line...
2. Restart IDE.
EXPECTED RESULT: Check the new positions of toolbars.
6Disable all toolbars1. Push from main menu View | Toolbars
2. Disable all toolbars in menu.
EXPECTED RESULT: All toolbars disappeared.
7Disable all toolbars - persistence1. Push from main menu View | Toolbars
2. Disable all toolbars in menu.
3. Restart IDE.
EXPECTED RESULT: All toolbars disappeared.
8Enable all toolbars1. Push from main menu View | Toolbars
2. Enable all toolbars in menu.
EXPECTED RESULT: All toolbars appeared.
9Enable all toolbars - persistence1. Push from main menu View | Toolbars
2. Enable all toolbars in menu.
3. Restart IDE.
EXPECTED RESULT: All toolbars appeared.
10Rename new created toolbar1. Choose Add Toolbar from popup on Toolbars in Options window under IDE Configuration, Look and Feel
2. Push OK.
3. Rename new toolbar to Test.
EXPECTED RESULT: Toolbar is renamed in tree and under new name presents in main menu View | Toolbars.
11Add actions into toolbar1. Choose Add Toolbar from popup on Toolbars in Options window under IDE Configuration, Look and Feel
2. Push OK.
3. Copy all actions(nodes) under View node.
4. Paste into the new toolbar.
EXPECTED RESULT: Actions appears in main window and there are also new nodes under toolbar node.



Generated: Tue Apr 19 18:05:42 CEST 2005
Companion
Projects:
MySQL Database Server   Open JDK: an Open SourceJDK   GlassFish Community: an Open Source Application Server    Mobile & Embedded Community    Open Solaris   java.net - The Source for Java Technology Collaboration   Virtual Box - full virtualizer  Open ESB - The Open Enterprise Service Bus Powered by