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