TS 60 FavoritesAndTemplates

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.


  1. Default folder on Windows
    1. Start ide with fresh userdir.
    2. 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.
  2. Default folder on Unix
    1. Start ide with fresh userdir.
    2. Open favorites tab from Window | Favorites menuitem.
    • EXPECTED RESULT: The user's home folder is in the favorites.
  3. Add a java package to the Favorites
    1. Open some java project.
    2. Select some source package of this project
    3. 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.
  4. Add a folder via Favorites window
    1. Invoke popup somewhere in free space of Favorites window. Click Add to favorites
    2. 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.
  5. Add nonexistend file via Favorites
    1. Invoke popup somewhere in free space of Favorites window. Click Add to favorites
    2. Type illegal (nonexistent) file name to the filechooser's edit field.
    3. Click Add button.
    • EXPECTED RESULT: The information dialog about nonexistent file is shown, nothing is added.
  6. Remove from Favorites
    1. Select a item in Favorites view.
    2. Perfom Remove from favorites action from popup on selected node.
    • EXPECTED RESULT: The item is removed from Favorites view
  7. New Empty file in favorites root folder
    1. Select a root of mounted folder in Favorites (e.g. your home folder).
    2. Perform popup New | Empty file on the selected node.
    3. 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.
  8. New folder in root of favorites folder
    1. Select a root of mounted folder in Favorites (e.g. your home folder).
    2. Perform popup New | Folder on the selected node.
    3. The New folder dialog is shown. Type "MyFolder" and then push the OK button.
    • EXPECTED RESULT: Folder "MyFolder" is created in the selected folder.
  9. New Empty file in a subfolder of root folder
    1. Select a subfolder of some folder mounted un favorites (e.g. your newly created MyFolder)
    2. Perform popup New | Empty file on the selected node.
    3. 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.
  10. Sorting some folder from favorites
    1. Select some folder (e.g. yor home folder) in favorites view
    2. invoke from popup its properties
    3. 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 )
  11. Renaming node in favorites
    1. Select popup on some node in Favorites view
    2. Choose Rename
    3. Type a new name
    • EXPECTED RESULT: See issue 57704 to know expected behaviour of rename action.
  12. Opening project
    1. Invoke popup on some project folder in favorites
    2. invoke Open project "..." action
    • EXPECTED RESULT: Project is opened.
  13. Select in favorites
    1. Add some class of project into favorites
    2. Open that class in editor
    3. Switch to projects view
    4. In editor, invoke from popup Select in | Favorites (Ctrl+Shift+3)
    • 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


  1. Create new java template
    1. Select Java folder in Templates, click Add..
    2. Browse for some java file
    3. Try to move it up/down and place it to desired position
    4. close Templates
    5. Create new project, invoke New file
    • EXPECTED RESULT: Your template is present at exact position and can be created.
  2. Create new folder and subfolder with templates
    1. Create new folder "My Templates" on top level
    2. Add some templates (e.g. java files) into "My Templates"
    3. Create new subfolder "Subfolder" of "My Templates" folder
    4. Add some templates (e.g. java files) into "Subfolder"
    5. close Templates
    6. Create new project, invoke New file
    • EXPECTED RESULT: Structure you created is present in New file wizard, all templates can be created.
  3. Duplicate and rename
    1. Select some template under Java folder
    2. Duplicate it
    3. Rename it (try also rename from popup)
    4. Open it in editor
    5. Edit and save it
    • EXPECTED RESULT: You can create your new template using New file wizard.
  4. Delete template
    1. Select some template under Java folder
    2. Delete it
    • EXPECTED RESULT: You cannot create your file from deleted template using New file wizard anymore.
  5. Copy/Cut and paste template
    1. Select some template under Java folder
    2. Copy/Cut it by popup action
    3. Paste it
    • EXPECTED RESULT: Template is correctly copied/moved.


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