cornercorner
FeaturesPluginsDocs & SupportCommunityPartners

HTML/JSP Palette Test Specification

Author: Jiri Skrivanek
Version: 1.0
Last update: 20.9.2005
Introduction: This is test specification of component palette for HTML and JSP files in NetBeans IDE 5.0.
Comment: Look at UI specification.

Table of Contents

Test suite 1: Palette Appearance

Purpose:
Setup:

#Test caseDescription
1Default location
  1. Start IDE with empty userdir.
  2. Create Web Application project from template.
  3. Check Palette is opened next to editor and it contains HTML, HTML Forms, JSP and Database categories.
  4. Create new HTML from template.
  5. Check palette with HTML and HTML Forms categories only is shown.
  6. Create new Java File (or other file without pallete).
  7. Check Palette is not shown.
  8. Swtich between files and check correct Palette (or no Palette) is shown.
RESULT:
2Palette positioning
  1. Close Palette
  2. Open Palette from main menu Window|Palette.
  3. Close Palette.
  4. Open Palette by short cut Ctrl+Shift+8.
  5. Resize Palette to show items in one, two or more rows.
  6. Dock palette somewhere.
  7. Dock Palette back to the original location.
  8. Switch between files and check correct Palette is shown and Palette is not resized unexpectedily (issue 62587).
RESULT:

Test suite 2: Palette Customization

Purpose:
Setup:

#Test caseDescription
1Items Appearance
  1. From context menu on Palette call Hide Item Names.
  2. Check only icons are shown.
  3. From context menu call Show Item Names.
  4. Check icons with names are shown.
  5. From context menu call Show Big Icons.
  6. Check big icons are shown.
  7. From context menu call Show Small Icons.
  8. Check small icons are shown.
  9. From context menu on an item call Sort by Item Name.
  10. Check items are sorted only in category of selected item.
  11. From context menu on a category node call Sort by Item Name.
  12. Check items are sorted only in this category.
RESULT:
2Categories
  1. From context menu on Palette call Create New Category.
  2. Check new category was added to Palette.
  3. From context menu on Palette call Sort by Category Name.
  4. Check categories are sorted alphabetically.
  5. Rename newly created category by context menu Rename on category node.
  6. Check category was renamed.
  7. Delete newly created category by context menu Delete on category node.
  8. Check category disappears from Palette.
RESULT:
3Copy/Cut/Paste Items
  1. From context menu on an item call Copy.
  2. From context menu on an item in the same category call Paste Item.
  3. Check item was pasted.
  4. From context menu on category node call Paste Item.
  5. Check item was pasted.
  6. From context menu on category node different than source one call Paste Item.
  7. Check item was pasted.
  8. From context menu on an item in category different than the source one call Paste Item.
  9. Check item was pasted.
  10. Create a new category.
  11. From context menu on new category node call Paste Item.
  12. Check item was pasted.
  13. Repeat with Ctrl+C, Ctrl+V short cuts.
  14. Repeat with Cut instead of Copy and check item was moved.
RESULT:
4Drag and Drop within Palette
  1. Drag and drop an item to the same category. It causes reordering of items.
  2. Drag and drop an item to different category.
  3. Drag and drop an item to newly created category.
  4. Drag and drop a category node. It reorders categories.
RESULT:
5Remove Items
  1. From context menu on an item call Remove.
  2. Check item was removed.
RESULT:
6Palette Customizer
  1. Repeat all above test cases in Palette Customizer dialog which can be invoked from context menu.
  2. Also test buttons "Move Up", "Move Down", "Remove..." and "New Category...".
RESULT:

Test suite 3: Inserting from Palette

Purpose:
Setup:

#Test caseDescription
1Keyboard Navigation
  1. Switch focus to Palette using Ctrl+Shift+8 short cut.
  2. Move over categories using Tab or Shift+Tab
  3. Move over items and categories using arrow keys.
  4. Show context menu on item or category using Shift+F10.
  5. On an item press Enter. It should open item customizer or insert code into editor if no customizer is needed. Enter provides the same functionality as mouse double-click.
RESULT:
2Insert Methods
  1. Every step below should open item customizer and insert code at the specified position in editor after customizer is closed. If no customizer is needed it inserts code directly into editor.
  2. Place cursor somewhere in editor, select an item an press Enter.
  3. Place cursor somewhere in editor and double-click an item.
  4. Drag and drop item to editor.
RESULT:
3Default Behaviour
  1. Expand category and check tooltip of all items corresponds to UI specification.
  2. Insert item to editor (don't change anything in customizer).
  3. Check inserted code is the same as tooltip. Additionally check cursor position.
RESULT:
4Item Customizers
  1. Open item customizer (double-click, enter or drag&drop).
  2. Check whether it corresponds to its UI specification (follow link for every item).
  3. Change values in customizer and check inserted code. Additionally check position of cursor. Repeat all possible combinations. Some modified values are remembered for next invokation. Look at UI specification for hints.
  4. Try Undo action (Ctrl+Z). It should remove all previously inserted code at once.
RESULT:

Generated: 2005 09 20 05:34
Companion
Projects:
MySQL Database Server   GlassFish Community: an Open Source Application Server   Open Solaris  Open JDK: an Open SourceJDK   Mobile & Embedded Community     Sponsored by 
Sponsored by Sun Microsystems