cornercorner
FeaturesPluginsDocs & SupportCommunityPartners

Autoupdate Test Specification

Author: Lukas Hasik, Jaromir Uhrik
Version:
Last update: 25.08.2005
Introduction: The Autoupdate client module provides the update of module or the group of modules available on the Autoupdate server through the Update Center Wizard. This document covers the specification of testing features included in the Autoupdate module. These tests should recognize issues contained in the Autoupdate module and check the module usability. If it is not pointed up explicitly then we suppose install/update of modules set that contains at least one module that needs IDE restart. Take care also about builds that are installed from rpm or solaris pkg because these build don't allow 'Global' installation but only installation to userdir. Global update of these modules is provided only by new rpm or solaris pkg.
Comment:

Table of Contents

Test suite 1: Proxy Configuration

Purpose: Test if the proxy configuration is working.
Setup: Start IDE with clean userdir, run Update Center Wizard. Proxy configuration dialog appears after click on button "Proxy Configuration...".

#Test caseDescription
1Successful connection
1. Click Proxy Configuration... button.
2. Set up proxy (if you connect to internet through proxy):
  • Push radiobutton Use HTTP proxy
  • Set Proxy Host correctly
  • Set Proxy Port correctly

3. Press OK button.
4. Press Next button.
RESULT: The Connecting dialog and then step 2 of the Update Center Wizard appears.
2Unccessful connection
1. Click Proxy Configuration... button.
2. Set up proxy to wrong values
3. Press OK button.
4. Press Next button.
RESULT: The [Error dialog] with text Unable to Connect to the Update Center Server appears.
3Proxy dialog possibilities
1. Check that values set up in Proxy Port or Proxy Server are not remembered after Cancel
2. Check that values set up in Proxy Port or Proxy Server are remembered after OK
3. Check that check box Unable proxy works
4. Check synchronization of proxy settings with global NetBeans options
RESULT: OK saves the values, Cancel let them unchanged.
Teardown:



Test suite 2: Autoupdate types

Purpose: Test of Autoupdate types (modify and create) in Options. The changes from Options should be propagated to Update Center wizard.
Setup: Configure the proxy properly. Open node (on Mac OS there is NetBeans | Preferences... instead of Tools | Options).

#Test caseDescription
1Add new Autoupdate Type
1. Choose New | General Update Center from popup on node [IDE Configuration | System | Autoupdate Types] in Tools | Options (or NetBeans | Preferences... on Mac OS)
2. Type name AAA and press Finish button.
RESULT: The AAA autoupdate type appears in Options. Check that the AAA update center appears in Update Center wizard too! Issue 42855
2Bad URL in Autoupdate type
1. Change Server URL to wrong value in Properties of a Autoupdate Type in Tools | Options (or NetBEans | Preferences... on Mac OS)
2. Open Update Center wizard, enable only the Update Center with the wrong value and press Next.
RESULT: The [Connecting] dialog and then [Error] dialog appears
3Propagation of change
1. Change enabled checkbox to enabled/disabled in Properties of a [Autoupdate Type] in Tools | Options (or NetBeans | Preferences... on Mac OS)
2. Open [Update Center] wizard
RESULT: Check that change is propagated properly.
Teardown:



Test suite 3: Second panel

Purpose: Test second panel of Update center wizard.
Setup: Start the Update Center Wizard and configure the proxy properly. Select at least one Update Center to Install Module(s) from. Click button - and you're on second panel of Update Center wizard.

#Test caseDescription
1Buttons
1. Button >> - moves all modules from "Available Updates and New Modules" to "Include in Install"
2. Button << - moves all modules from "Include in Install" to "Available Updates and New Modules"
3. Button > - moves selected module/category (one or more) from "Available Updates and New Modules" to "Include in Install"
4. Button << - moves selected module/category (one or more) from "Include in Install" to "Available Updates and New Modules"
RESULT: Check that buttons work properly.
2Accept license
1. Add any module(s) to "Include in Install" in 2.step "Select Modules to Install" and press Next button
2. Accept license
RESULT: You will be moved to the third panel of the Update Center Wizard. The IDE starts immediately download the selected modules.
3Skip download step
1. Add any module(s) to "Include in Install" in 2.step "Select Modules to Install" and press Next button
2. Accept license
3. Wait till download is finished. Press Back button.
4. Press Next button again
RESULT: You will skip the download and will be moved to the fourth panel of the Update Center Wizard - View Certificates and Install modules.
Teardown:



Test suite 4: Fourth panel

Purpose: Test fourth panel of Update center wizard.
Setup: Start the Update Center Wizard and configure the proxy properly. Select at least one Update Center to Install Module(s) from. Click button. Choose at least two module to download and , let them download and .

#Test caseDescription
1Include check box
1. Un/Check [Include] checkbox
2. [Module Certificate] dialog appears
3. Try the buttons Accept/Reject/Do not allways accept
RESULT: [Include] checkbox is checked or unchecked properly.
2Save Copy ...
1. Select any of the downloaded modules
2. Press Save Copy ... button
3. Choose directory to save the module. Press Save.
RESULT: Module is saved to choosed location
3Save Copy with wrong name
1. Select any of the downloaded modules
2. Press Save Copy ... button
3. Type name of not existing dir to File name and press Save.
RESULT: No directory named xxx exist message appears
Teardown:



Test suite 5: Installation

Purpose: Check that modules are installed properly.
Setup: Start the Update Center Wizard and configure the proxy properly. Select at least one Update Center to Install Module(s) from. Click button. Choose at least two module to download and , let them download and .

#Test caseDescription
1Module installation without restart
1. Press Finish button on 4-th panel of Update Center wizard
2. Update Center wizard is closed
RESULT: Module is installed. Check it in System Options | IDE Configuration | System | Modules
2Module installation with restart
1. Press Finish button on 4-th panel of Update Center wizard
2. Update Center wizard is closed
3. Check [Restart the IDE] radio button (it's the default option)
RESULT: IDE restasrts. Module is installed. Check it in Tools | Options->IDE Configuration | System->Modules
3New module installation - global
1. Check [Global] checkbox for a new module(this module wasn't installed before, it's new for this IDE)
2. Finish
RESULT: Module is installed to highest cluster(in case of NetBeans nb4.0). Any user of IDE can use it. Test it with new userdir, the module should be installed.
4Module update
1. Module update is available on Update Center
2. Download it to install and check [Global] installation, Finish
RESULT: Module is updated in the cluster where it was before.
5Select later update
1. Press Finish button on 4-th panel of Update Center wizard
2. Choose the [Install Later] radiobutton.
3. Press OK button.
4. The Update Center Wizard should hide and IDE must work without restarting.
5. Close the IDE and restart again.
RESULT: The 'installed later' module will be installed on restart.
Teardown:



Test suite 6: Accessibility

Purpose: Accessibility of the Update Center Wizard.
Setup: Open

#Test caseDescription
1Tab traversal
1. Test the tab traversal at each dialog belonging to the Autoupdate module.
RESULT: All components in each of the dialog have to be accessible by tab.
2Mnemonics
1. Test the mnemonics at each dialog belonging to the Autoupdate module.
RESULT: All components in each of the dialog must have unique mnemonic.
Teardown:



Test suite 7: Autoupdate module uninstall/install

Purpose: Check the stability of the module when it is uninstalled and then installed again.
Setup: Run IDE with the clean user directory.

#Test caseDescription
1Uninstall of Autoupdate module
1. Select main menu Tools | Options (or NetBeans | Preferences.. on Mac OS).
2. Expand Configuration | System | Modules | Infrastructure.
3. Select [AutoUpdate]
4. Disable module (uncheck property Enabled).
5. Close Options
6. Expand main menu Tools.
RESULT: The menu item Autoupdate in the Tools menu is missing.
2Install of Autoupdate module
1. Select main menu Tools | Options (or NetBeans | Preferences.. on Mac OS).
2. Expand IDE Configuration | System | Modules | Infrastructure.
3. Select [AutoUpdate]
4. Enable module (check property Enabled).
5. Close Options
6. Expand main menu Tools.
RESULT: The menu item Autoupdate should be back in Tools menu.
3Testing update
1. Start Update Center Wizard.
2. Try to download some module(s).
RESULT: There should be no problem with the Wizard functionality. The $USER_HOME/update/download/ must contain the downloaded .nbm file(s)
Teardown:



Test suite 8: Update from local .nbm files

Purpose: Local modules selection, copying and install test.
Setup: Run IDE with clean userdir, start Update Center Wizard, select second radiobutton (Install Manually Downloaded Modules (.nbm Files)).

#Test caseDescription
1Add modules
1. Press Next.
2. Check buttons on the displaied 2nd panel of Update Center Wizard (Back - enabled, Next - disabled, Finish - disabled, Cancel - enabled, button Add... must be enabled, Remove - disabled).
3. Press Add and select the modules through appeared Open dialog (use daily .nbm files from daily builded archive of modules).
4. Check buttons on the Update Center Wizard panel (Back - enabled, Next - enabled, Finish - disabled, Cancel - enabled).
5. Click some module(s), remove them and add them again.
6. Press Next button.
RESULT: The select panel of the step 2 is visible now. All modules are on the right so move them to the left (by << button).
2Select modules
1. Check buttons on the displayed 2nd panel of Update Center Wizard (Back - enabled, Next - disabled, Finish - disabled, Cancel - enabled).
2. Select some module(s), press > and they will move to the right.
3. Move them back by < button.
4. Select some module that depends on another ones (not selected), press > and they will move to the right.
5. Check that required module(s) appears in the selected list along with the chosen module(s).
6. Remove modules other modules are dependent on - Dependent modules should be removed as well.
7. Add all modules again (if the connection is slow then select only subset).
8. Click some module and check the module description, size...
9. Press More button to open module description in the web browser.
10. Press Next button.
RESULT: Accept license will appear.
3Accept license
1. Refuse license - you will be in the step 2 of the Update Center Wizard.
2. Press Next and accept license.
RESULT: You will be moved to the third panel of the Update Center Wizard. The IDE starts immediately download the selected modules. While the download is in progress the Next button is disabled. Immediately after the finish of the download the phase of verification should start. The Next button is enabled then. The time of the download has to be short because modules are copied locally.
4Modules storing
1. Press Next to go to step 4 of the wizard.
2. Check buttons on the Update Center Wizard panel (Back - enabled, Next - disabled, Finish - enabled, Cancel - enabled).
3. Copy files from $USER_HOME/update/download/ to some local directory ($LOCAL_MODULES).
4. Press Back.
RESULT: The wizard will display panel 2 and the modules that have already been downloaded must be signed by green icon.
5Certificate settings
1. Press Next and Accept the license(s) to go to step 4 of the wizard again.
2. Select some trusted module in the list of downloaded.
3. View Certificate button will become enabled.
4. Press View Certificate.
RESULT: Module Certificate dialog appears - contains buttons Do Not Always Accept, Close and Help. There should be contained these information: Distinguished Owner of the trusted module and the Issuer of the certificate, Signer's certificate serial number, Validity of the certificate (from - until), Certificate fingerprints - MD5 hash of the certificate.
6Signed modules
1. Try the functionality of the Help and Close buttons.
2. View Certificate again.
3. Press Do Not Always Accept.
4. Check the modules will be now Signed instead Trusted.
5. View Certificate.
RESULT: The Certificate dialog contains buttons Accept, Always Accept and Reject instead of Do Not Always Accept.
7Install modules
1. Press Always Accept to have modules trusted.
2. Press Finish on Update Center Wizard.
RESULT: The .jar files extracted from .nbm modules stored in $USER_HOME/update/download should be created in the $USER_HOME/modules/. Moreover the $USER_HOME contains newly created xml file update_tracking.xml and into the $USER_HOME/update/ is added update.log file and the directory backup. While the IDE restarts the Updater splash screen appears first and then the modules are installing and IDE runs.
Teardown:



Test suite 9: Install .NBMs from All Files

Purpose: Installation of .NBM visible in All Files.
Setup: Run IDE with clean userdir.

#Test caseDescription
1Install the .NBM from All Files tab
1. Select any .NBM file in All Files tab and do double click on the node.
RESULT: The Update Center wizard will appear and the single module will be in the list on the right.
2Create Empty .NBM file
1. Take some system tool and create the text file with .NBM suffix
2. Select the .NBM file in All Files tab and do double click on the node.
RESULT: The Update Center wizard should appear first and then the [Warning] dialog 'Zip file ... is corrupted. ...' appears and it is modal. Close it and the Update Center wizard too.
Teardown:



Test suite 10: Automatic Update check on IDE startup

Purpose: Checking of new updates on startup of the IDE.
Setup: Run IDE with clean userdir.

#Test caseDescription
1Change settings
1. Go to general IDE options.
2. Select node IDE Configuration | System | Update Center.
3. Set Check Period to Every Startup.
4. Close the Settings dialog.
5. Restart the IDE.
RESULT: After the IDE finishes start the dialog Automatic Update Check appears.
2Enable checkbox
1. Set the checkbox in the dialog Enabled.
2. Remember the status of the values in the dialog.
3. Close the dialog.
4. Start the Update Center Wizard and open Options.
RESULT: The remembered values must be the same as those of in Options and first panel of Update Center Wizard.
3Check available updates notification icon
1. In system options set AutoUpdate Check Period to value "Every Startup"
2. Restart IDE
3. Check that in the status line there appears icon on the left (in case that updates are available)
4. Click on the icon
RESULT: Update Center wizard opens on panel 2.
Teardown:



Test suite 11: Smoke test of AutoUpdate wizard

Purpose: Quickly test main functionality of Update Center wizard. Create a new autoupdate type, set up proxy, download modules, save module and install it. Really quick test of AU client functionality.
Setup: Run IDE with clean userdir.

#Test caseDescription
1Smoke test
1. Open Tools | Options. Go to [IDE Configuration | System | AutoUpdate types]
2. Create new AutoUpdate type and name it test. Close Options.
3. Open Tools | Setup Wizard. On third panel set [Period of Automatic Update Check] to /Every startup/ and check [Show Dialog Before Automatic Update Check]. Finish.
4. Open Tools | Update Center.
5. Check that Error message appears. To achive it you have to set up bad Proxy configuration.
6. Correct the Proxy Configuration (not needed when you don't use proxy).
7. Click Next on first panel. You should get to second panel - Select Modules to Install.
8. Choose some modules for installation. Select the modules in [Available Updates and New Modules] and move them with > to [Include in Install]
9. Move all modules back with << and repeat previous step.
10. Modules for installation are choosed, click Next. Accept licence(s).
11. Wait on modules download and verification and then press Next on third panel.
12. Select a module on fourth panel and click Save Copy...
13. Write non-existing folder name to [File Name] textfield. Click Save. [Error] message appears.
14. Press Save Copy.. button again and select a existing folder. Save the copy of module.
15. Play for a while with [Include] check box - check and uncheck some modules. Accept/Reject certificate etc.
16. Select at least one module for [Global] installation.
17. Press Finish button and choose [Restart the IDE] radiobutton then.
RESULT: IDE restarts and installs the modules. The [Check fo New Updates] dialog appears after restart. Check that the modules are really installed. Don't forget to check even those that are installed globally.
Teardown:




Generated: Thu Aug 25 11:38:47 CEST 2005
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