TS 73 Utilities

Utilities Test Specification for Utilities

Author: Jaromir Uhrik, Jana Maleckova, Benno Markiewicz
Version: 1.0.3
Last update: 02.12.2012
Introduction: This document is intended to be test specification of utilities module. Utilities module is set of four small modules.
Comments: 1.0.3 is based on 1.0.2 of http://wiki.netbeans.org/wiki/index.php?title=TS_60_Utilities&oldid=24437

Contents


Test suite: Open File

Purpose:
Setup: none

  1. Open file
    1. Open 'Open File' dialog from File main menu.
    2. Select a file.
    3. Confirm dialog
    • EXPECTED RESULT: File should be opened.
  2. Open file 2
    1. Close IDE
    2. Run IDE with parameter --open xxx , where xxx is name of the existing java file
    • EXPECTED RESULT: IDE is started and the file xxx is opened in the editor


Test suite: PDF (obsolete?)

Purpose:
Setup: none

  1. Open pdf file
    1. Open pdf file from main menu.
    2. Wait to pdf file will be opened. This takes a few seconds (0-5)
    • EXPECTED RESULT: Pdf file should be properly opened.
  2. Browsing through pdf file
    1. While you browse the PDF file, IDE is 100% usable
    • EXPECTED RESULT: IDE should be usable after opening pdf file.


Test suite: Search - Find in Projects...

Purpose:
Setup: Open project from attached Utilities

  1. Full text search
    1. Open search dialog "Find in Projects...". Use shortcut 'ctrl+shift+f' on PC keyboards or 'Find' key on Sparc keyboards
    2. Fill some value in combobox with label "Containing Text:"
    3. Click to 'Help' button
    4. Wait to help appeared. This should takes a few seconds.
    5. Close help. Use x-widget
    6. Click to 'Close' button
    • EXPECTED RESULT: Nothing happened only dialog will be closed
  2. Full text search
    1. Open search dialog "Find in Projects...". Use shortcut 'ctrl+shift+f' on PC keyboards or 'Find' key on Sparc keyboards
    2. Fill some value in combobox with label "Containing Text:"
    3. Push button Close
    • EXPECTED RESULT: Nothing happened only dialog will be closed
  3. Full text search
    1. Open search dialog "Find in Projects...". Use shortcut 'ctrl+shift+f' on PC keyboards or 'Find' key on Sparc keyboards
    2. Enter new as the text which is being searched, uncheck Whole Words,Match Case and Regular Expression in section Options. Radio button Open Projects should be automatically set in section Scope
    3. Push the Find button
    • EXPECTED RESULT: The search result window is opened where are listed 5 files which contain searched text. Double click on item from this list will open appropriate file in the editor
  4. Full text search with parameters
    1. Open Dialog Find in Projects... using Menu: Edit -> Find in Projects...
    2. Start searching for word 'New' (see the case)
    3. Check Whole Words
    4. Run search
    5. Go back to search dialog by Modify Criteria (in the toolbar left)
    6. Check Match Case in addition
    7. Run search
    • EXPECTED RESULT: In the first search the 3 files are returned, in the second case no files containing specified string are found.
  5. Searching regular expression
    1. Open search dialog
    2. Input
      '[NN]ewClas+'
      (without quotes) as searched text and check Regular Expression
    3. Perform search
    • EXPECTED RESULT: When Regular Expression is checked, then checkbox "Match Case" is enabled, checkbox "Whole Words" is disabled. Search returns two suitable nodes.
  6. Browsing results
    1. Repeat any previous search
    2. In the result list try double click on items
    3. Try unfolding the listed item
    4. Click on Show All Details
    5. Click on some item form the newly opened window
    • EXPECTED RESULT: Double click on item will open appropriate file. When the item is unfolded all occurrences of the searched text is shown, clicking on the detail information will open the appropriate file and put cursor on the related place. Show All Details will open new window where are detail information about all founded occurrences. Clicking on them should open file and put cursor to referenced place.
  7. Scope Selection
    1. Create the second J2SE project with main class. Set it as main one as well
    2. Select Project node of this project and invoke Find from context menu
    3. Fill string 'main' into search text field
    4. Perform search
    • EXPECTED RESULT: Radio button "Selection" should be automatically set when Find dialog is invoked. Search returns five files which contains this string. All files should be from project, created as the last.
  8. Scope Selection
    1. Have two projects in IDE - Utilities and new J2SE project. The second one is set as main
    2. Select Utilities node in project window and invoke Find from context menu
    3. Fill string 'main' into search text field
    4. Set Main Project in Scope
    5. Perform search
    • EXPECTED RESULT: Search returns five files which contains this string. All files should be from project which is set as Main in IDE. In our case, all found files should be from the last created project.
  9. Scope Selection
    1. Have two projects in IDE - Utilities and new J2SE project. The second one is set as main
    2. Select Utilities node in project window and invoke Find from context menu
    3. Fill string 'main' into search text field
    4. Set Open Projects in Scope
    5. Perform search
    • EXPECTED RESULT: Search returns ten files which contains this string. All files should be from both projects
  10. File Name Patterns from editor
    1. Open a file from 'Utilities' project. Make sure that the focus is in the editor and press ctrl+shift+f to invoke Find dialog
    2. Fill string 'ELEMENT' into search text field
    3. Set '*.dtd, *.java' in File Name Patterns
    4. Uncheck checkboxes (if already checked) for 'Match case', 'Whole words', 'Regex'
    5. Perform search
    • EXPECTED RESULT: When the find dialog is opened the scope is set to 'Current Project (Utilities)'. Search returns two files which contains this string (NewClass2.java, newDTD.dtd).
  11. File Name Patterns from project view with a selected project
    1. Select 'Utilities' node in project window and invoke 'Find...' from context menu
    2. Fill string 'ELEMENT' into search text field
    3. Set '*.dtd, *.java' in File Name Patterns
    4. Uncheck checkboxes (if already checked) for 'Match case', 'Whole words', 'Regex'
    5. Perform search
    • EXPECTED RESULT: When the find dialog is opened the scope is set to 'Selection (Utilities)'. Search returns two files which contains this string (NewClass2.java, newDTD.dtd).
  12. File Name Patterns from project view with no selected projects
    1. Make sure that NO project node is selected (if a project node is selected, then right click on free space within the projects views and cancel the popup menu. Now no project nodes are selected anymore.)
    2. Press ctrl+shift+f to invoke Find dialog
    3. Fill string 'ELEMENT' into search text field
    4. Set '*.dtd, *.java' in File Name Patterns
    5. Uncheck checkboxes (if already checked) for 'Match case', 'Whole words', 'Regex'
    6. Perform search
    • EXPECTED RESULT: When the find dialog is opened the scope is set to 'Open Projects'. Search returns two files which contains this string (NewClass2.java, newDTD.dtd).
  13. File Name Patterns, Containing text combobox - history
    1. Try to use search for more times
    • EXPECTED RESULT: All the time, search should returns correct results and when Find dialog is invoked, both comboboxes should remember all previous filled strings


Test suite: Replace in Projects

Purpose:
Setup: Project Utilities is opened

  1. Invoke Replace in Projects from menu
    1. Open Replace dialog - Edit -> Replace in Projects ...
    2. Click to 'Help' button
    3. Wait to help appeared. This should takes a few seconds.
    4. Close help. Use x-widget
    5. Click to 'Close' button
    • EXPECTED RESULT: Nothing happened only dialog will be closed
  2. Invoke Replace in Projects by shortcut
    1. Invoke Replace dialog by ctrl+shift+H
    2. Close dialog. Use x-widget
    • EXPECTED RESULT: Nothing happened only dialog will be closed
  3. Replace string
    1. Select project node of Utilities in project window
    2. Invoke Replace dialog by shortcut ctrl+shift+H
    3. Fill string 'Hello World' in combobox 'Containing Text:'
    4. Write only 'Hello' in combobox 'Replace With'
    5. Do Find
    6. Press Replace button in the search results window
    • EXPECTED RESULT: In first step, Replace dialog should find all occurrences of searched string. All results are displayed as a Tree in Search Results Window. User should have possibility to choose which all occurrences will be replaced (by check/uncheck appropriate nodes in result tree). When Replace button is pressed, all wanted occurrences are replaced and changed file is automatically saved.
  4. Replace string
    1. Select project node of Utilities in project window
    2. Invoke Replace dialog by shortcut ctrl+shift+H
    3. Fill string 'Hello' in combobox 'Containing Text:'
    4. Write 'Hello World' in combobox 'Replace With'
    5. Do Find
    6. Uncheck all accurrences in result tree
    • EXPECTED RESULT: In first step, Replace dialog should find all occurrences of searched string. All results are displayed as a Tree in Search Results Window. When all nodes in result tree are unchecked, the replace button is disabled, no changes will be made in project.


Test suite: Search - Repeat

Purpose:
Setup: Project Utilities is opened

  1. Modify search
    1. Open find dialog
    2. Fill in some values
    3. Perform search
    4. Click Modify Criteria in the result window
    • EXPECTED RESULT: The search is performed correctly. After clicking on Modify Criteria, the find dialog is reopened and all values are as before.


br

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