FeaturesPluginsDocs & SupportCommunityPartners

Utilities Test Specification

Author: Jaromir Uhrik
Version: 1.0.2
Last update: 25.08.2005
Introduction: This document is intended to be test specification of utilities module. Utilities module is set of four small modules.
Comment:

Table of Contents

Test suite 1: Open File

Purpose:
Setup: none

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

Test suite 2: PDF

Purpose:
Setup: none

#Test caseDescription
1Open pdf file
  1. Open pdf file from main menu.
  2. Wait to pdf file will be opened. This takes a few seconds (0-5)
RESULT:Pdf file should be properly opened.
2Browsing through pdf file
  1. While you will browse, will IDE 100% usable
RESULT:IDE should be usable after opening pdf file.
3Setting pdf viewer
  1. Go to Tools -> Options -> IDE configuration -> Server and External Tools Settings -> PDF Settings
  2. Specify new path to PDF viewer
  3. Close options
  4. Open PDF file
RESULT:PDF file is opened in specified external program

Test suite 3: Search - Full text tab

Purpose:
Setup: Open project Utilities

#Test caseDescription
1Full text tab 1
  1. Open search dialog with 'Full text' tab. Use 'ctrl-f' on PC keyboards or 'Find' key on Sparc keyboards
  2. Fill all values to this tab
  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
RESULT:Nothing happened only dialog will be closed
2Full text tab 2
  1. Open search dialog with 'Full text' tab. Use 'ctrl-f' on PC keyboards or 'Find' key on Sparc keyboards
  2. Enter new as the text which is being searched, uncheck Search Whole Words Only,Match Case and Regular Expression.
  3. Click to Search button
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
3Parameters of the search
  1. Start searching for word 'New' (see the case)
  2. Check Match Whole Words Only
  3. Run search
  4. Go back to search dialog by Modify Search
  5. Check Match Case in addition
Teardown: Close search result window
RESULT:In the first search the 3 files are returned, in the second case no files containing specified string are found.
4Searching regular expression
  1. Open search dialog on 'Full text' tab
  2. Input '[nN]ewClas+' (without quotes) as searched text and check Regular Expression
  3. Perform search
RESULT:When Regular Expression is checked the other two checkboxes are disabled. Search return two suitable nodes.
5Browsing 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
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.

Test suite 4: Search - Object Name tab

Purpose:
Setup: Project Utilities is opened

#Test caseDescription
1Object name tab 1
  1. Open search dialog with 'Object name' tab. Use 'ctrl-f' on PC keyboards or 'Find' key on Sparc keyboards
  2. Fill all values to this tab
  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
RESULT:Nothing happened only dialog will be closed
2Object name tab 2
  1. Open search dialog with 'Object name' tab. Use 'ctrl-f' on PC keyboards or 'Find' key on Sparc keyboards
  2. Fill 'Class' as searched text, keep all search modifiers uncheck.
  3. Click to Search button
RESULT:The search should return 2 suitable files. Clicking on their name in the list will open them.

Test suite 5: Search - Type

Purpose:
Setup: Project Utilities is opened

#Test caseDescription
1Type tab 1
  1. Open search dialog with 'Type tab' tab. Use 'ctrl-f' on PC keyboards or 'Find' key on Sparc keyboards
  2. Fill all values to this tab
  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
RESULT:Nothing happened only dialog will be closed
2Type tab 2
  1. Open search dialog with 'Type tab' tab. Use 'ctrl-f' on PC keyboards or 'Find' key on Sparc keyboards
  2. Select 'Ant scripts'
  3. Click to Search button
RESULT:One ant script should by found
3Type tab 3
  1. Open search dialog on Type tab
  2. Select two types: Ant scripts and Form objects
  3. Try some of the others types
RESULT:Two files are returned as a result

Test suite 6: Search - Date

Purpose:
Setup: Project Utilities is opened

#Test caseDescription
1Date tab 1
  1. Open search dialog with 'Date tab' tab. Use 'ctrl-f' on PC keyboards or 'Find' key on Sparc keyboards
  2. Fill all values to this tab
  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
RESULT:Nothing happened only dialog will be closed
2Date tab 2
  1. Open search dialog with 'Date tab' tab. Use 'ctrl-f' on PC keyboards or 'Find' key on Sparc keyboards
  2. Fill in Within the past
  3. Click to Search button
  4. Repeat this search again but this time fill in Between dates.
RESULT:The result of this search depends on the file's attributes. In generally files with proper modification time are returned.

Test suite 7: Search - Combine search criteria

Purpose:
Setup: Project Utilities is opened

#Test caseDescription
1Combine two criteria
  1. Fill two tabs. Don't forget check 'Use This Criterion for search' in both tabs
RESULT:There should be fonded strings in sources accordingly your select.
2Combine all criteria
  1. Fill all tabs. Don't forget check 'Use This Criterion for search' in both tabs
RESULT:There should be fonded strings in sources accordingly your select.
3Excluding criterion
  1. Open find dialog
  2. Fill in several tabs
  3. In one of the filled tab (marked with *) uncheck Use This Criterion for Search
  4. Click Search
RESULT:The proper results are listed in new window. The unchecked criterion wasn't used. (If all filled tabs are unchecked the Search is disabled)

Test suite 8: Search - Repeat

Purpose:
Setup: Project Utilities is opened

#Test caseDescription
1Modify search
  1. Open find dialog
  2. Fill in some values
  3. Perform search
  4. Click Modify Search in the result window
RESULT:The search is performed correctly. After clicking on Modify Search, the find dialog is reopened and all values (in all tabs) are as before.
2Save criterion
  1. Open find dialog
  2. Enter some search criterion
  3. Save this criterion by Save Setting as
  4. Enter criterion name and click OK
  5. Perform search with some different criterion (to change default value when search dialog is opened again)
  6. Open find dialog and restore criterion by Restore Saved
  7. Repeat this test case for all tabs, use more than one saved criterion for each tab
RESULT:The criterion is save under specified name. It can be restored by selecting its name from list of saved criteria.

Generated: 2005 08 25 12:49
Companion
Projects:
MySQL Database Server   Open JDK: an Open SourceJDK   GlassFish Community: an Open Source Application Server    Mobile & Embedded Community    Open Solaris   java.net - The Source for Java Technology Collaboration   Virtual Box - full virtualizer  Open ESB - The Open Enterprise Service Bus Powered by