FeaturesPluginsDocs & SupportCommunityPartners

Main Window Test Specification for NetBeans 5.0

Author: Marian Mirilovic, Zdenek Konecny
Last update: 09/13/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 shownable 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. Active classic opions dialog (main menu Tools | Options and click on Classic View ) and expand node "Menu Bar" under IDE configuration | Look and Feel .
2. Expand some menu node - e.g. "& File" and right click on it. Choose Add -> separator from popup menu.
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 Classic Options. Right click for Move Up/Down in popup menu on separator node.
2. Separator Move Up to destination where should be visible (not last item, nor beside another separator) and check look of appropriate menu.
EXPECTED RESULT: Item is moved and look of menu is changed.
6Deleting Separator [Done] 1. Delete separator.
EXPECTED RESULT: Item is deleted and look of menu is changed - check that appropriate menu was changed.
7Check Mnemonic1. Check all default menus in Classic Option window.
EXPECTED RESULT: There is "&" in front of mnemonic letter in menu.
8Adding New Menu [Done] 1. Choose Add Menu from popup on Menu Bar in Classic 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.
9Change Order of Menus [Done] 1. Invoke Change Order... from popup on Menu Bar node in Classic 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.
10Deleting Menu [Done] 1. Delete menu.
EXPECTED RESULT: Item is deleted and look of menu is changed - check that appropriate menu disappeared.
11Rename Menu [Done] 1. Rename some menu node under Menu Bar in Classic Options window, IDE Configuration, Look and Feel
EXPECTED RESULT: Node is renamed and menu name is changed in main menu too.
12Change Order of Menu Items1. Try move up/down some menu items under menu in Menu bar in Classic 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.
13Deleting Menu Item [Done] 1. Delete menu.
EXPECTED RESULT: Item is deleted and look of menu is changed - check that appropriate menu disappeared.
14Copy / Paste1. Perform 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.
10Check View | Toolbars Customizer1. Invoke context menu by right click on toolbar area and select item Customize.... This dialog is also possible open by View | Toolbars | Customize....
EXPECTED RESULT: The Tolbars Customizer is showed and it's got appropriate look.
11Create new toolbar by Toolbars Customizer1. Open Toolbars Customizer and click on New Toolbar....
2. In the text field of new opened dialog fill in a name of new toolbar.
EXPECTED RESULT: Behind last toolbar in toolbar area is showed new separator. In toolbar area's context menu and in "View | Toolbars" is name of new created toolbar.
12Check already existing toolbar warning1. Open Toolbars Customizer and click on New Toolbar....
2. In the text field of new opened dialog fill in the name of new created toolbar.
EXPECTED RESULT: Information that Toolbar "name of the toolbar" already exists is showed.
13Add actions into toolbar by Toolbars Customizer1. Open Toolbars Customizer.
2. Drag some action from the Toolbards Customizer and put it into new created toolbar.
3. Repeat three times step 2 with different actions.
EXPECTED RESULT: Appropriate icons of the actions is showed in toolbar and each action has its appropriate function and tooltip. Check it's impossible add two same actions into one toolbar.
14Remove actions from toolbar by Toolbar Customizer1. Open Toolbar Customizer dialog.
2. Drag an action from new created toolbar and put it into Toolbar Customizer.
EXPECTED RESULT: The action is removed from the toolbar.
15Check persistance of new created toolbar after closing and restart1. Close the new created toolbar (invoke context menu on toolbar area and disable appropriate item).
2. Restart IDE
3. Open the new created toolbar.
EXPECTED RESULT: New created toolbar is opened and it contains all actions which was in the toolbar before closing.
16Delete Toolbar1. Open Toolbar Customizer.
2. Remove rest of actions from new created toolbar (Drag an action and drop it into Toolbar Customizer).
3. Close Toolbar Customizer.
EXPECTED RESULT: The new created toolbar is deleted and its name is removed from toolbar area's context menu and from " View | Toolbars " menu.



Generated: Fri Sep 23 12:35:15 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