TS 65 QuickSearch

Quick Search Test specification for NetBeans 6.5

Author: Petr Chytil
Last update: 08/16/2013
Editor: Don Liyanage
UI Specification:

Introduction: This document is intended to be a test specification for NetBeans Quick Search.


Contents


Test suite: Calling Actions - In Editor

Setup: Create or open some J2SE project.

  1. Run Project
    1. Hit CTRL + I to invoke Quick search.
    2. Type "Run" in it.
    3. Use arrow keys to select "Run Project F6" result in "Actions" section and hit enter.
    • EXPECTED RESULT: Run Project action is invoked properly, the project is compiled and running.
  2. Selection actions
    1. Open some java file in Editor (source code view).
    2. Have multiple lines in source selected.
    3. Hit CTRL + I to invoke Quick search.
    4. Type "Format" in it.
    5. Use arrow keys to select "Format (Source) CTRL+SHIFT+F" result in "Actions" section and hit enter.
    • EXPECTED RESULT: Format action is invoked properly. Only selected text is formated.
  3. Select Node in ...
    1. Open some java file in Editor.
    2. Hit CTRL + I to invoke Quick search.
    3. Type "Select Node in Files" in it.
    4. Use arrow keys to select "Select Node in Files CTRL+SHIFT+2" result in "Actions" section and hit enter.
    • EXPECTED RESULT: Files window gets focus and the file, which is opened in editor, is selected.

Test suite: Open Actions

  1. Open project
    1. Hit CTRL + I to invoke Quick search.
    2. Type "Open project" in it.
    3. Use arrow keys to select "Open Project CTRL+SHIFT+O" result in "Actions" section and hit enter.
    • EXPECTED RESULT: Open Project dialog is opened.
  2. Open file
    1. Hit CTRL + I to invoke Quick search.
    2. Type "Open file" in it.
    3. Use arrow keys to select "Open File..." result in "Actions" section and hit enter.
    • EXPECTED RESULT: Open File dialog is opened.


Test suite: Go To actions

Setup: Create empty Java Application project.

  1. Go To Source
    1. Open Main.java file and write System.out.println(""); in main method.
    2. Put caret on System word in editor.
    3. Hit CTRL + I to invoke Quick search.
    4. Type "Go To Source".
    5. Use arrow keys to select "Go To Source CTRL+SHIFT+B" result in "Actions" section and hit enter.
    • EXPECTED RESULT: Go To Source Action is properly invoked, System.java file is opened in editor.
  2. Go To Test
    1. Create tests for Main class (select Main.java in Projects window and press CTRL+SHIFT+U).
    2. Put caret on main method name in editor.
    3. Hit CTRL + I to invoke Quick search.
    4. Type "Go To Test".
    5. Use arrow keys to select "Go To Test CTRL+SHIFT+T" result in "Actions" section and hit enter.
    • EXPECTED RESULT: Go To Test Action is properly invoked, MainTest.java file is opened in editor.


Test suite: Options

  1. Main section in Options Dialog
    1. Hit CTRL + I to invoke Quick search.
    2. Type "Keymap" in it.
    3. Use arrow keys to select "Keymap Options" result in "Options" section and hit enter.
    • EXPECTED RESULT: The Options Dialog shows up and the Keymap section is selected.
  2. Sub-section in Options Dialog
    1. Hit CTRL + I to invoke Quick search.
    2. Type "Tasklist" in it.
    3. Use arrow keys to select "Tasklist" result in "Options" section and hit enter.
    • EXPECTED RESULT: The Options Dialog shows up and the Tasklist sub-section in Editor section is selected.


Test suite: Opening Windows

  1. Already opened window
    1. Start IDE with fresh user dir or invoke Window > Reset Window action and open Start Page to have default window layout.
    2. Hit CTRL + I to invoke Quick search.
    3. Type "Projects" in it.
    4. Use arrow keys to select "Projects (CTRL+1)" result in "Actions" section and hit enter.
    • EXPECTED RESULT: Project window gets activated.
  2. Closed window
    1. Start IDE with fresh user dir or invoke Window > Reset Window action and open Start Page to have default window layout.
    2. Hit CTRL + I to invoke Quick search.
    3. Type "Output" in it.
    4. Use arrow keys to select "Output (CTRL+4)" result in "Actions" section and hit enter.
    • EXPECTED RESULT: Output window is opened in it's default location and it's active.


Test suite: Searching in Help

  1. Open help for specific component
    1. Hit CTRL + I to invoke Quick search.
    2. Type "Palette" in it.
    3. Use arrow keys to select "Palette Window" result in "Help" section and hit enter.
    • EXPECTED RESULT: Help window for Palette is opened.


Test suite: Filtering results

  • Click on the magnifying glass icon and select some option from the combo-box to enable results filtering.
  1. Try all available search filters
    1. Select Actions and enter some string from previous test cases.
    2. Select Go To Type and enter some string from previous test cases.
    3. Select Options and enter some string from previous test cases.
    4. Select Help and enter some string from previous test cases.
    • EXPECTED RESULT: Result are properly filtered.


Test suite: Using mouse

  1. Use mouse in Quick Search to invoke actions
    1. Click into Quick search input box.
    2. Type any string from previous testcases in it.
    3. Use mouse pointer to select action and invoke it by mouse click.
    • EXPECTED RESULT: Lines in result are being selected as the mouse cursor moves over them. Mouse click activates them the same way as the "enter" key does.


Test suite: Specific tests

  • This suite should test Quick search for regressions. Test cases are based on already fixed bugs.
  1. Tabs & arrow
    1. Hit CTRL + I to invoke Quick search.
    2. Press "tab" four times.
    3. Press up-arrow.
    • EXPECTED RESULT: Nothing nasty happens (no exception).
  2. Parentheses
    1. Hit CTRL + I to invoke Quick search.
    2. Try typing symbols as (, ), {, }, /, \.
    • EXPECTED RESULT: Nothing nasty happens (no exception).


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