TS 60 Favorites
Favorites test specification Test Specification for NetBeans 6.0
Author: Tomas Musil
Last update: 01.04.2008
Introduction: This test specs tests the Favorites feature. See also UI spec.
Contents |
Test suite: Favorites
Purpose: To test favorites view feature
Setup: There are no specials steps to configure the NetBeans ide for testing Favorites.
- Default folder on Windows
- Start ide with fresh userdir.
- Open favorites tab from Window | Favorites menuitem.
- EXPECTED RESULT: The user's "so called home folder" (e.g. C:\Documents and settings\UserXYZ) is in the favorites.
- Default folder on Unix
- Start ide with fresh userdir.
- Open favorites tab from Window | Favorites menuitem.
- EXPECTED RESULT: The user's home folder is in the favorites.
- Add a java package to the Favorites
- Open some java project.
- Select some source package of this project
- From popup on selected package choose Tools | Add to Favorites.
- EXPECTED RESULT: The folder of the package is added to the Favorites. The Favorites window is focused.
- Add a folder via Favorites window
- Invoke popup somewhere in free space of Favorites window. Click Add to favorites
- A file chooser is shown. Select some folder in the file chooser and click Add button.
- EXPECTED RESULT: The folder is added to the Favorites. The Favorites window is focused.
- Add nonexistend file via Favorites
- Invoke popup somewhere in free space of Favorites window. Click Add to favorites
- Type illegal (nonexistent) file name to the filechooser's edit field.
- Click Add button.
- EXPECTED RESULT: The information dialog about nonexistent file is shown, nothing is added.
- Remove from Favorites
- Select a item in Favorites view.
- Perfom Remove from favorites action from popup on selected node.
- EXPECTED RESULT: The item is removed from Favorites view
- New Empty file in favorites root folder
- Select a root of mounted folder in Favorites (e.g. your home folder).
- Perform popup New | Empty file on the selected node.
- The New empty file dialog is shown. Type a file with a extension and then click OK button.
- EXPECTED RESULT: New file is created in selected folder. The created file is opened in editor.
- New folder in root of favorites folder
- Select a root of mounted folder in Favorites (e.g. your home folder).
- Perform popup New | Folder on the selected node.
- The New folder dialog is shown. Type "MyFolder" and then push the OK button.
- EXPECTED RESULT: Folder "MyFolder" is created in the selected folder.
- New Empty file in a subfolder of root folder
- Select a subfolder of some folder mounted un favorites (e.g. your newly created MyFolder)
- Perform popup New | Empty file on the selected node.
- The New empty file dialog is shown. Type a file with a extension and then press the Ok button.
- EXPECTED RESULT: New file is created in selected subfolder. The created file is opened in editor.
- Sorting some folder from favorites
- Select some folder (e.g. yor home folder) in favorites view
- invoke from popup its properties
- Select some sort type (e.g. by name, by type, ....)
- EXPECTED RESULT: Check that selected sort type does take effect on order of items in selected folder (65bug: 151044 )
- Renaming node in favorites
- Select popup on some node in Favorites view
- Choose Rename
- Type a new name
- EXPECTED RESULT: See issue 57704 to know expected behaviour of rename action.
- Opening project
- Invoke popup on some project folder in favorites
- invoke Open project "..." action
- EXPECTED RESULT: Project is opened.
- Select in favorites
- Add some class of project into favorites
- Open that class in editor
- Switch to projects view
- In editor, invoke from popup Select in | Favorites
- EXPECTED RESULT: Favorites window is selected, node with file is focused.
Generated: Thu Dec 14 15:18:31 CET 2006
Test suite: Templates
Purpose: To test templates feature
Setup: Start ide with fresh userdir. Templates are accessible in Tools|Templates
- Create new java template
- Select Java folder in Templates, click Add..
- Browse for some java file
- Try to move it up/down and place it to desired position
- close Templates
- Create new project, invoke New file
- EXPECTED RESULT: Your template is present at exact position and can be created.
- Create new folder and subfolder with templates
- Create new folder "My Templates" on top level
- Add some templates (e.g. java files) into "My Templates"
- Create new subfolder "Subfolder" of "My Templates" folder
- Add some templates (e.g. java files) into "Subfolder"
- close Templates
- Create new project, invoke New file
- EXPECTED RESULT: Structure you created is present in New file wizard, all templates can be created.
- Duplicate and rename
- Select some template under Java folder
- Duplicate it
- Rename it (try also rename from popup)
- Open it in editor
- Edit and save it
- EXPECTED RESULT: You can create your new template using New file wizard.
- Delete template
- Select some template under Java folder
- Delete it
- EXPECTED RESULT: You cannot create your file from deleted template using New file wizard anymore.
- Copy/Cut and paste template
- Select some template under Java folder
- Copy/Cut it by popup action
- Paste it
- EXPECTED RESULT: Template is correctly copied/moved.

