TS 7 Palette

Palette Test specification for NetBeans 7

Author: Tomáš Tököly
Last update: 20.3.2012
UI Specification: Drag and Drop Code Snippet to Palette OnePager
Introduction: This document is intended to be a test specification for NetBeans Palette. It is based on old TS for NetBeans 6.5.

Contents


Test suite: Palette Actions

  1. Open Palette window
    1. Close Palette window if opened.
    2. Push main menu Window | IDE Tools | Palette to open Palette window.
    3. Close Palette window.
    4. Press CTRL+SHIFT+8 to open Palette window.
    • EXPECTED RESULT: Palette window is opened.
  2. Refresh Palette
    1. Open form file, HTML file or some other file, which has few components in palette.
    2. Right click on some component in palette and invoke Refresh Palette action.
    • EXPECTED RESULT: Palette window is refreshed.
  3. Palette manager
    1. Open form file, HTML file or some other file, which has few components in palette.
    2. Right click on some component in palette and invoke Palette Manager... action.
    • EXPECTED RESULT: Palette Manager is opened.
  4. Sort by Category Name
    1. Have at least three palette categories created.
    2. Right click on some category button in palette and invoke Sort by Category Name action.
    • EXPECTED RESULT: Categories are sorted alphabetically after the action was invoked.
  5. Sort by Item Name
    1. Have at least three component buttons in some category.
    2. Right click on some of these three buttons in palette and invoke Sort by Item Name action.
    • EXPECTED RESULT: Items in category are sorted alphabetically after the action was invoked.


Test suite: Keyboard commands

Setup: Have palette with components opened (open e.g. form file or HTML file)

  1. Highlight category buttons
    1. Have palette with more then one component category opened.
    2. Use up and down keyboard key to traverse through the list of buttons and categories.
    • EXPECTED RESULT: Actually selected button or category is highlighted. Up arrow moves the highlight upwards and down arrow moves the highlight downwards.
  2. Highlight component buttons
    1. Resize the palette until it contains at least two columns of component buttons.
    2. Use up and down keyboard key to traverse through the list of buttons and categories.
    3. Have some component button highlighted (not category button).
    4. Use left and right keyboard key to change columns of component buttons.
    • EXPECTED RESULT: Actually selected button or category is highlighted. Left arrow moves the highlight to the left column. If it already is in left column, then it moves one line up to the rightmost column. Analogically for the right arrow key.
  3. Expand List
    1. Click on some component in palette to give it focus (the item gets highlighted).
    2. Use keyboard arrow keys to move through the palette.
    3. Highlight the category button.
    4. Use left and right keyboard arrow button to expand the list.
    • EXPECTED RESULT: List is expanded when right keyboard arrow is pressed. Left arrow hides the list.
  4. Copy and paste
    1. Highlight some component button.
    2. Press CTRL+C to copy the component button.
    3. Press CTRL+V to paste it.
    • EXPECTED RESULT: All actions work as expected.


Test suite: Drag to Palette

  1. Add to Palette dialog
    1. Open in editor some filetype, which supports code snippets in palette (e.g. HTML).
    2. Have part of source code selected and D'n'D it to Palette (to the snippets area).
    • EXPECTED RESULT: Add to Palette dialog is displayed.
  2. Create new snippet
    1. Invoke Add to Palette dialog (test case 1).
    2. Enter some name and tooltip text into it.
    3. Set both small and large icons.
    4. Edit the code, which is being added to snippet.
    5. D'n'D the snippet from palette to editor.
    • EXPECTED RESULT: Snippet is created, has correct name and tooltip. Verify both icons by show small icons/show big icons action from palette's context menu. Correct code is inserted into editor after D'n'D from palette.
  3. Remove snippet
    1. Create some snippet (test case 2).
    2. Remove snippet.
    • EXPECTED RESULT: Snippet is not present in the palette anymore.


Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo