cornercorner
FeaturesPluginsDocs & SupportCommunityPartners

Properties Test Specification

Author: Emanuel Hucka, Jaromir Uhrik, Jiri Prox
Version: 2.0
Last update: 2005/09/12
Introduction: This is test specification of Properties module in NetBeans IDE. The Properties module have been used for creating and editing resource bundles. These resource bundles are used by Internationalization module i18n). This test specification is covering all module functionality.
Comment:

Table of Contents

Test suite 1: Creating properties file in IDE

Purpose: Check properties file creations.
Setup: Started Ide with fresh userdir.

#Test caseDescription
1Creating properties file from main window - default name
  1. Open New Wizard. Use menu File|New File... from main window.
  2. Select from wizard Other|Properties File and click Next button.
  3. There is set default file name and package name. Do not change these values.
  4. Confirm wizard.
  5. Wait to properties file appeared in Explorer.
RESULT:New properties file will be add (with default name - newproperties.properties) to adequate place in Explorer and opened in editor.
2Creating properties file from main window
  1. Open New Wizard. Use menu File|New File... from main window.
  2. Select from wizard Other|Properties File and click Next button.
  3. Type file name and select folder to place the file.
  4. Confirm wizard.
  5. Wait to properties file appeared in Explorer.
RESULT:New properties file will be add to adequate place in Explorer and opened in editor.
3Creating properties file from Explorer
  1. In Explorer create new properties file. Right click on any folder and select in appeared context menu New | File...
  2. Select from wizard Other|Properties File and click Next button.
  3. Type name to appeared wizard.
  4. Confirm wizard. (Press Finish button.)
RESULT:New properties file will be created and opened in editor.
4Creating properties file from Explorer - same name
  1. There should be created file from previous case. Do not delete it.
  2. In Explorer create new properties file. Right click on any directory and select in appeared context menu New|File... Other|Properties File.
  3. Type name to appeared wizard.(as same name as previous case)
  4. Try confirm wizard. 'Finish' button should be disabled.
  5. Cancel wizard. (Click to 'Cancel' button.)
RESULT:File is not created.

Test suite 2: Editing properties file by editor

Purpose: Check behavior of properties file editing.
Setup:

#Test caseDescription
1Edit new file in property editor - remove 1
  1. Open property editor with empty properties file. (Use popup menu in Explorer and select Open action)
  2. Try push Remove Property button.
RESULT:There is no exceptions and nothing happened.
2Edit new file in property editor - add property
  1. Use file from previous case. Empty properties file.
  2. Push button New Property.
  3. In appeared dialog open help. (Click to Help button.)
  4. Type key, value and comment to appropriate places.
  5. Close Help. Use cross in window border or close button.
  6. Confirm dialog. (Push Ok button.)
RESULT:Help window for "Adding a Property" context will be opened. New property will be appended into edited properties file.
3Edit new file in property editor - add property - same name
  1. Use file from previous case.(There is one property in this file)
  2. Add new property. Push button New Property.
  3. Type the same values as key, value and comment to appropriate places as previous case.
  4. Confirm dialog. Push Ok button.
RESULT:An Error dialog will appear with message like "Property <NAME> already exists in <LOCALE> locale". No property will be appended to property file.
4Edit new file in property editor - add property - cancel
  1. Use file from previous case.(There is one property in this file)
  2. Add new property. Push button New Property.
  3. Type key, value and comment to appropriate places
  4. Cancel dialog. Push Cancel button.
RESULT:Nothing happened. No property will be add to property file.
5Edit new file in property editor - remove
  1. Use file from previous case.
  2. Select one item (row) in properties editor. There may be selected last added item.
  3. Try push Remove Property button.
  4. Wait for Question dialog and confirm it.
RESULT:No exceptions will be thrown. Selected item will be deleted.
6Edit new file in property editor - remove - cancel
  1. Use file from previous case or create a new.
  2. Select one item (row) in properties editor. If there is no item in property editor create new one.
  3. Try push Remove Property button.
  4. Wait for Question dialog and cancel him. You should use Cancel button for this action.
RESULT:No exceptions will be thrown. Selected item will be not deleted.
7Edit file in classic editor - add property
  1. Open new property file in classic editor. (Use popup menu in Explorer and select Edit action)
  2. Add new property. Type to editor "# Comment of key1", press enter and type "key1=value1".
  3. Save file. Use shortcut Ctrl-s.
RESULT:All changes will be made correctly, new key, value and comment can be checked by Explorer or in Properties editor.
8Edit file in classic editor - remove property
  1. Use property file from previous case.
  2. Remove property (typed in previous case)
  3. Save file. Use shortcut Ctrl-s
RESULT:All changes will be made correctly, removed key, value and comment can be checked by Explorer or in Properties editor.
9Customize big properties file
  1. Open big properties file with about 5 thousands rows in it.
  2. Add some properties to this file. Use Add property button in properties editor or popup menu from Explorer or properties window.
  3. Remove some properties.
RESULT:All actions will be done in adequate time. Maximal time for each action is 3 sec.

Test suite 3: Customizing properties file from explorer

Purpose: Check customizing of all settings of properties.
Setup:

#Test caseDescription
1Adding locale file from Explorer
  1. Use popup menu on properties file (group of locale files) in Explorer. Right click to properties file in Explorer.
  2. Select from popup menu Add Locale.
  3. Open help from appeared dialog. Click to Help button.
  4. Type values to Language code, Country code and Variant fields.
  5. Close help window.
  6. Confirm dialog. Press OK button.
RESULT:New locale will be add to properties file. For each locale exists one file on disk.
2Adding locale file from Explorer - same values
  1. Use the same properties file from previous case.
  2. Open popup menu on this group of properties files.(in Explorer)
  3. Select Add Locale menu.
  4. Type to appeared dialog the same values (the same locale, country and variant) as previous case
  5. Confirm dialog
RESULT:An Error dialog will appear with message like: "Language <LOCALE_NAME> already exists in this bundle". No locale will be created.
3Adding locale file from Explorer - cancel
  1. Use the same properties file from previous case.
  2. Open popup menu on this group of properties files.(in Explorer)
  3. Select Add Locale menu.
  4. Type any values to proper place
  5. Cancel dialog. Press Cancel button.
RESULT:No locale will be created.
4Customize locales from Explorer - add locale
  1. Select some properties bundle in explorer.
  2. Invoke Customize action from popup menu.
  3. In Customize Dialog open help. Click to Help button.
  4. Add locale. Click to Add Locale button and type values to appeared dialog.
  5. Confirm New Locale dialog.
  6. Help should be closed (each modal dialog close help while this dialog is closing).
  7. Close Customize Dialog.
RESULT:New locale will be add. New file is created.
5Customize locales from Explorer - remove locale
  1. Open Customize Dialog (see previous case).
  2. Remove locale. Select one locale in Locales list and click on Remove button. Default locale is not possible to remove!
  3. Close Customize Dialog.
RESULT:Selected locale will be removed.
6Add property to locale file from Explorer
  1. Open context menu of default locale file. (In Explorer right click to Default locale file.)
  2. Select Add property from context menu.
  3. Open help. Use for this action Help button in appeared dialog.(Dialog Add property.)
  4. Fill to dialog all values and confirm it. (Click to the OK button.)
RESULT:Dialog disappeared and changes will be put correctly into properties file. Help should disappeared with dialog Add property at the same time.
7Add property to locale file from Explorer - cancel
  1. Open context menu of default locale file. (In Explorer right click to Default locale file.)
  2. Select Add property from context menu.
  3. Fill to dialog all values and cancel it.
RESULT:Dialog disappeared and changes aren't made in properties file.
8Add property to locale file from Explorer - same name
  1. Open context menu of default locale file. (In Explorer right click to Default locale file.)
  2. Select Add property from context menu.
  3. Fill to dialog the same values as previous case and confirm it. (Click to the OK button.)
RESULT:Dialog will disappear and an Error dialog appears with message like: "Property <PROPERTY_KEY> already exists in locale Default". There are no changes in properties file.
9Customize locale from Explorer
  1. Open Customizer dialog on some locale. (Invoke action Customize on Default or other locale in Explorer.)
  2. Open help. (Click to Help button.)
  3. Add property. (Click to Add Key button)
  4. Fill New Property dialog. (Fill all values)
  5. Confirm this dialog (Click to OK button.)
  6. Close Customizer dialog.
RESULT:New property will be add into customized locale. Check it in explorer.
10Customize locale from Explorer - cancel
  1. Open Customizer dialog on some locale. (Invoke action Customize on Default or other locale in Explorer.)
  2. Add property. (Click to Add Key button)
  3. Fill New Property dialog. (Fill all values)
  4. Close this dialog (Click to Cancel button.)
  5. Close Customizer dialog.
RESULT:New property will not be add to customized property.
11Customize locale from Explorer - same values
  1. Open Customizer dialog on some locale. (Invoke action Customize on Default or other locale in Explorer.)
  2. Add property. (Click to Add Key button)
  3. Fill the same values as previous case to the New Property dialog.
  4. Confirm this dialog (Click to OK button.)
  5. Close Customizer dialog.
RESULT:An Error dialog will appear with message like: "Property <PROPERTY_KEY> already exists in <LOCALE_NAME> locale.".
12Customize locale from Explorer - remove property
  1. Open Customizer dialog on some locale. (Invoke action Customize on Default or other locale in Explorer.)
  2. Select some properties and remove them from file. Click on Remove Key button.
  3. Try remove property from empty properties file. The Remove Key button should be disabled.
RESULT:Property(-ies) will be removed from property file.
13Delete locale from Explorer - cancel
  1. Delete locale file from Explorer. (Click to locale file to remove and press Delete key or use Delete item from popup menu in Explorer window.)
  2. Cancel appeared dialog. (Click to No button)
RESULT:Nothing happened.
14Delete locale from Explorer 2
  1. Delete locale file from Explorer. (Click to locale file to remove and press Delete key or use Delete item from popup menu in Explorer window.)
  2. Confirm appeared dialog. (Click to Yes button.)
RESULT:Selected locale file will be deleted.
15Delete more locales from Explorer
  1. Create properties file with more locales. (min. 2 locales)
  2. Open these locales in classic editor
  3. Delete these locale files from Explorer. Select them and press Delete button
  4. Confirm dialog. Click to Yes button.
RESULT:All selected properties files (locales) will be closed and deleted.

Test suite 4: Customizing properties file from form editor

Purpose: Check behaviour of properties file customized from Form Editor.
Setup:

#Test caseDescription
1Adding property from Form Editor
  1. Create a form file. Use New Wizard dialog. (On some package invoke action New| File/Folder,in opened dialog select Java GUI Forms|JPanel Form and press Finish button).
  2. Wait for Form Editor Window appeared.
  3. Add JButton component from toolbar to JPanel.
  4. Go to properties window and customize property text.
  5. Wait to dialog text appeared.
  6. Change Select mode combo from StringEditor to Resource Bundle.
  7. Wait to dialog change his content
  8. Fill all required fields and confirm dialog.
RESULT:Key will be add to chosen properties file. You can create a new properties file from this dialog.
2Changing property from Form Editor
  1. Use the same JPanel from previous case.
  2. Click to JButton.
  3. Go to properties window and customize property text.
  4. In appeared dialog change name of value or comment.
  5. Confirm this dialog.
RESULT:JButton text will be changed to new property value. The property is changed in properties file too.

Test suite 5: Options - Properties tab

Purpose: This suite checks basic options of Properties Editor. Caution : Only text editor ( text view to the properties file ) has options.
Setup: There should be opened properties file in editor (text view to properties file). This testsuite uses Classical View of Option dialog.

#Test caseDescription
1Abbreviations option
  1. Open Options dialog. (main menu Tools|Options)
  2. Expand tree nodes to the Properties editor settings. (Editing-Editor Settings)
  3. Select Properties Editor node in tree. This shows table with options on the right side in options window.
  4. Open add abbreviation dialog This dialog has title Enter Abbreviation. (Click to ... next to the Abbreviation option and then click to add button in appeared dialog.)
  5. Fill an abbreviation and confirm it.
  6. Close Abbreviation dialog
  7. Click to properties file in editor and try to use your added abbreviation.
  8. Click back to the title of Options dialog.
  9. Open edit abbreviation dialog and edit your abbreviation. This dialog has title Enter Abbreviation. (Click to ... button next to the Abbreviation option and then click to Edit button)
  10. Do a change in your abbreviation and close dialog edit abbreviation
  11. Close Abbreviation dialog
  12. Click to properties file in editor and try to use your edited abbreviation.
  13. Click back to the title of Options dialog.
  14. Open abbreviation dialog and remove your abbreviation. (Click to ... button next to the Abbreviation option and then click to Remove button)
  15. Click to properties file in editor and try to use your removed abbreviation. (after removing abb. is not possible to use it)
RESULT:There will be append, edit and remove an abbreviation.
2Indentation Engine
  1. Open Options dialog or if this dialog has been opened select focus on it.
  2. There should be selected 'Properties Editor' tree node. (Options dialog should remember last selection)
  3. Change Value of Indentation Engine option.
RESULT:Check if change is made correctly in editor.
3Line Numbers
  1. Open Options dialog or if this dialog has been opened select focus on it.
  2. There should be selected 'Properties Editor' tree node. (Options dialog should remember last selection)
  3. Change Value of Line Numbers option.
RESULT:Check if change is made correctly in editor.
4Macros
  1. Open Options dialog or if this dialog has been opened select focus on it.
  2. There should be selected 'Properties Editor' tree node. (Options dialog should remember last selection)
  3. Change Value of Macros (Add, Edit and Remove macro).
RESULT:Check if change is made correctly in editor.
5Shadow Table Cell
  1. Open Options dialog or if this dialog has been opened select focus on it.
  2. There should be selected 'Properties Editor' tree node. (Options dialog should remember last selection)
  3. Change Value of Shadow Table Cell option.
RESULT:Check if change is made correctly in editor.
6Tab Size
  1. Open Options dialog or if this dialog has been opened select focus on it.
  2. There should be selected 'Properties Editor' tree node. (Options dialog should remember last selection)
  3. Change Value of Tab Size option.
RESULT:Check if change is made correctly in editor.

Test suite 6: Options - Expert tab

Purpose: This suite checks expert options of Properties Editor. Caution : Only text editor ( text view to the properties file ) has options.
Setup: There should be opened properties file in editor (text view to properties file). This testsuite uses Classical View of Option dialog.

#Test caseDescription
1Display Text Line Limit
  1. Open Options dialog or if this dialog has been opened select focus on it.
  2. There should be selected 'Properties Editor' tree node. (Options dialog should remember last selection)
  3. Change Value of Display Text Line Limit option.
RESULT:Check if change is made correctly in editor.
2Highlight Caret Row
  1. Open Options dialog or if this dialog has been opened select focus on it.
  2. There should be selected 'Properties Editor' tree node. (Options dialog should remember last selection)
  3. Change Value of Highlight Caret Row option.
RESULT:Check if change is made correctly in editor.
3Highlight Matching Bracket
  1. Open Options dialog or if this dialog has been opened select focus on it.
  2. There should be selected 'Properties Editor' tree node. (Options dialog should remember last selection)
  3. Change Value of Highlight Matching Bracket option.
RESULT:Check if change is made correctly in editor.
4Insertion Point
  1. Open Options dialog or if this dialog has been opened select focus on it.
  2. There should be selected 'Properties Editor' tree node. (Options dialog should remember last selection)
  3. Change Value of Insertion Point option.
RESULT:Check if change is made correctly in editor.
5Insertion Point Blink Rate
  1. Open Options dialog or if this dialog has been opened select focus on it.
  2. There should be selected 'Properties Editor' tree node. (Options dialog should remember last selection)
  3. Change Value of Insertion Point Blink Rate option.
RESULT:Check if change is made correctly in editor.
6Insertion Point Color
  1. Open Options dialog or if this dialog has been opened select focus on it.
  2. There should be selected 'Properties Editor' tree node. (Options dialog should remember last selection)
  3. Change Value of Insertion Point Color option.
RESULT:Check if change is made correctly in editor.
7Italic Overwrite Caret
  1. Open Options dialog or if this dialog has been opened select focus on it.
  2. There should be selected 'Properties Editor' tree node. (Options dialog should remember last selection)
  3. Change Value of Italic Overwrite Caret option.
RESULT:Check if change is made correctly in editor.
8Line Height Correction
  1. Open Options dialog or if this dialog has been opened select focus on it.
  2. There should be selected 'Properties Editor' tree node. (Options dialog should remember last selection)
  3. Change Value of Line Height Correction option.
RESULT:Check if change is made correctly in editor.
9Margin
  1. Open Options dialog or if this dialog has been opened select focus on it.
  2. There should be selected 'Properties Editor' tree node. (Options dialog should remember last selection)
  3. Change Value of Margin option.
RESULT:Check if change is made correctly in editor.
10Overwrite Caret
  1. Open Options dialog or if this dialog has been opened select focus on it.
  2. There should be selected 'Properties Editor' tree node. (Options dialog should remember last selection)
  3. Change Value of Overwrite Caret option.
RESULT:Check if change is made correctly in editor.
11Overwrite Caret Color
  1. Open Options dialog or if this dialog has been opened select focus on it.
  2. There should be selected 'Properties Editor' tree node. (Options dialog should remember last selection)
  3. Change Value of Overwrite Caret Color option.
RESULT:Check if change is made correctly in editor.
12Scroll Find Insets
  1. Open Options dialog or if this dialog has been opened select focus on it.
  2. There should be selected 'Properties Editor' tree node. (Options dialog should remember last selection)
  3. Change Value of Display Text Line Limit option.
RESULT:Check if change is made correctly in editor.
13Scroll Jump Insets
  1. Open Options dialog or if this dialog has been opened select focus on it.
  2. There should be selected 'Properties Editor' tree node. (Options dialog should remember last selection)
  3. Change Value of Scroll Find Insets option.
RESULT:Check if change is made correctly in editor.
14Status Bar Caret Delay
  1. Open Options dialog or if this dialog has been opened select focus on it.
  2. There should be selected 'Properties Editor' tree node. (Options dialog should remember last selection)
  3. Change Value of Status Bar Caret Delay option.
RESULT:Check if change is made correctly in editor.
15Status Bar Visible
  1. Open Options dialog or if this dialog has been opened select focus on it.
  2. There should be selected 'Properties Editor' tree node. (Options dialog should remember last selection)
  3. Change Value of Status Bar Visible option.
RESULT:Check if change is made correctly in editor.
16Text Limit Character Count
  1. Open Options dialog or if this dialog has been opened select focus on it.
  2. There should be selected 'Properties Editor' tree node. (Options dialog should remember last selection)
  3. Change Value of Text Limit Character Count option.
RESULT:Check if change is made correctly in editor.
17Text Limit Line Color
  1. Open Options dialog or if this dialog has been opened select focus on it.
  2. There should be selected 'Properties Editor' tree node. (Options dialog should remember last selection)
  3. Change Value of Text Limit Line Color option.
RESULT:Check if change is made correctly in editor.

Test suite 7: Options - Modern View

Purpose: This suite checks options of Properties Editor.
Setup: There should be opened properties file in editor (text view to properties file). This testsuite uses Moder View of the options dialog

#Test caseDescription
1Code Templates
  1. Open options dialog
  2. Click on the Editor icon
  3. Go to Code Templates tab
  4. Select 'Properties' as a language
  5. Click on New and fill in Abbreviation, Description and Expanded text
  6. Go to editor and test new Abbreviation
  7. Open option dialog and modify Code Template created is previous steps
  8. Go to editor and test again this Abbreviation
  9. Open option dialog and remove Code Template created is previous steps
  10. Go to editor and test Abbreviation again
RESULT:Abbreviations (Code Templates) expands abbreviation to desired text when it is set. After deleting code template it doesn't work any more
2Macro Creating
  1. Open options dialog
  2. Click on the Editor icon
  3. Go to Macros tab
  4. Select 'Properties' as a language
  5. Create new macro by clicking on New and filing in Name and the Code
  6. Test the new macro in properties editor
RESULT:The macro works in the editor as expected
3Macro Recording
  1. Open properties file in editor
  2. Click on Start Macro Recording button
  3. Perform some actions
  4. Click on Stop Macro Recording
  5. Fill in a name and a shortcut for this macro
  6. Test the new macro in properties editor
RESULT:The macro works in the editor as expected, it is added to macro list in the options dialog (for the right language)
4Macro Removing
  1. Open options dialog
  2. Click on the Editor icon
  3. Go to Macros tab
  4. Select 'Properties' as a language
  5. There should be two macros created in previous test-cases. Remove them
  6. Test the macros in the editor
RESULT:The shortcuts assigned originally to the macros do nothing
5Syntax Coloring
  1. Open options dialog
  2. Click on the Fonts & Colors icon
  3. Select Syntax tab
  4. Select 'Properties' as language
  5. Try changing font and colors for each item in the Category list
RESULT:The preview is updated correctly, the changes are reflected in the editor

Generated: 2005 09 12 04:26
Companion
Projects:
MySQL Database Server   GlassFish Community: an Open Source Application Server   Open Solaris  Open JDK: an Open SourceJDK   Mobile & Embedded Community     Sponsored by 
Sponsored by Sun Microsystems