TS 60 Utilities

Utilities Test Specification for Utilities

Author: Jaromir Uhrik, Jana Maleckova
Version: 1.0.2
Last update: 11.05.2007
Introduction: This document is intended to be test specification of utilities module. Utilities module is set of four small modules.
Comments:

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

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 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,Case Sensitive 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 Search
    6. Check Case Sensitive in addition
    • 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 the other two checkboxes are disabled. Search return 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
    1. Have focus in editor and press crtl+shift+f to invoke Find dialog
    2. Select Utilities node in project window and invoke Find from context menu
    3. Fill string 'ELEMENT' into search text field
    4. Set '*.dtd, *.java' in File Name Patterns
    5. Perform search
    • EXPECTED RESULT: Search returns two files which contains this string (NewClass2.java, newDTD.dtd). If Find in Projects dialog is invoked and focus is in source editor at that time, Scope of find dialog is automatically set to Opened Projects
  11. 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
    7. Press Replace button Search Output 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. When all nodes in result tree are unchecked and finally replace is done, no changes should 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 Search in the result window
    • EXPECTED RESULT: The search is performed correctly. After clicking on Modify Search, the find dialog is reopened and all values are as before.


Generated: Fri May 11 13:39:35 CEST 2007

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