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.
- Run Project
- Hit CTRL + I to invoke Quick search.
- Type "Run" in it.
- 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.
- Selection actions
- Open some java file in Editor (source code view).
- Have multiple lines in source selected.
- Hit CTRL + I to invoke Quick search.
- Type "Format" in it.
- 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.
- Select Node in ...
- Open some java file in Editor.
- Hit CTRL + I to invoke Quick search.
- Type "Select Node in Files" in it.
- 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
- Open project
- Hit CTRL + I to invoke Quick search.
- Type "Open project" in it.
- Use arrow keys to select "Open Project CTRL+SHIFT+O" result in "Actions" section and hit enter.
- EXPECTED RESULT: Open Project dialog is opened.
- Open file
- Hit CTRL + I to invoke Quick search.
- Type "Open file" in it.
- 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.
- Go To Source
- Open Main.java file and write System.out.println(""); in main method.
- Put caret on System word in editor.
- Hit CTRL + I to invoke Quick search.
- Type "Go To Source".
- 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.
- Go To Test
- Create tests for Main class (select Main.java in Projects window and press CTRL+SHIFT+U).
- Put caret on main method name in editor.
- Hit CTRL + I to invoke Quick search.
- Type "Go To Test".
- 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
- Main section in Options Dialog
- Hit CTRL + I to invoke Quick search.
- Type "Keymap" in it.
- 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.
- Sub-section in Options Dialog
- Hit CTRL + I to invoke Quick search.
- Type "Tasklist" in it.
- 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
- Already opened window
- Start IDE with fresh user dir or invoke Window > Reset Window action and open Start Page to have default window layout.
- Hit CTRL + I to invoke Quick search.
- Type "Projects" in it.
- Use arrow keys to select "Projects (CTRL+1)" result in "Actions" section and hit enter.
- EXPECTED RESULT: Project window gets activated.
- Closed window
- Start IDE with fresh user dir or invoke Window > Reset Window action and open Start Page to have default window layout.
- Hit CTRL + I to invoke Quick search.
- Type "Output" in it.
- 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
- Open help for specific component
- Hit CTRL + I to invoke Quick search.
- Type "Palette" in it.
- 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.
- Try all available search filters
- Select Actions and enter some string from previous test cases.
- Select Go To Type and enter some string from previous test cases.
- Select Options and enter some string from previous test cases.
- Select Help and enter some string from previous test cases.
- EXPECTED RESULT: Result are properly filtered.
Test suite: Using mouse
- Use mouse in Quick Search to invoke actions
- Click into Quick search input box.
- Type any string from previous testcases in it.
- 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.
- Tabs & arrow
- Hit CTRL + I to invoke Quick search.
- Press "tab" four times.
- Press up-arrow.
- EXPECTED RESULT: Nothing nasty happens (no exception).
- Parentheses
- Hit CTRL + I to invoke Quick search.
- Try typing symbols as (, ), {, }, /, \.
- EXPECTED RESULT: Nothing nasty happens (no exception).