TS 61 UserRegistration

User Registration Test Specification for NetBeans 6.1

Author: Lukas Hasik
Last update: 03/07/2008
Introduction: This test specification describes the tests scenarios for User Registration in the IDE. It doesn't covers the test cases for installer user registration functionality.

Contents


Test suite: Registration dialog

Purpose: Test of Registration dialog behavior
Setup: Run IDE with clean userdir
About the feature:

  • the Registration functionality is enabled only in final release. Use command line switch -J-Dnb.registration.enabled=true
  • the Registration connect to a default host server. For testing you can use J-Dnb.registration.host=https://inventory-tst2.sun.com
  • the Registration functionality should be available by default from NB 6.0.1
  • for logging of the registration module functionality use -J-Dorg.netbeans.modules.registration.level=0 -J-Dorg.netbeans.modules.reglib.level=0 on command line when starting IDE. The logging shows what data are collected. And what is post to server.
  • status.xml file is created in HOME/.netbeans-registration/NB_VERSION/. It contains - registered/never/later in xml
  • always check that the registration.xml is created when the Register button is pressed
    • either in NB_INSTALL-DIR/nb. NB_VERSION/servicetag/registration.xml or at user home directory at HOME/.netbeans-registration/NB_VERSION/registration.xml. It depends on if the IDE can write to the NB install directory
  • NOTE: on Vista it behaves in a tricky way - when it cannot write to a directory (e.g. NB install dir) then it creates a virtual filesystem in user directory.


  1. Registration Reminder dialog appears
    1. Start the FCS build or IDE with commandline options to enable the registration
    • EXPECTED RESULT: The Registration dialog appears when main window of IDE shows up.
  2. Registration Reminder > Register
    1. Press Register button on the Registration Reminder dialog
    • EXPECTED RESULT: Registration Reminder dialog closes. Registration Page opens up in the web browser. If the IDE cannot connect to the internet, it opens up the Offline Registration Page instead of the live Registration page. The Registration Reminder dialog won't appear anymore at IDE startup.
  3. Never Register
    1. Press Never Register button on the Registration Reminder dialog
    • EXPECTED RESULT: Registration Reminder dialog closes. The Registration Reminder dialog won't appear anymore at IDE startup.
  4. Remind Me Later
    1. Press Remind Me Later button on the Registration Reminder dialog
    • EXPECTED RESULT: Registration Reminder dialog closes. The Registration Reminder dialog opens again after 7 days during the IDE startup.
  5. Help > Register
    1. click Help > Register menu item in IDE
    • EXPECTED RESULT: Registration Page opens up in the web browser. If the IDE cannot connect to the internet, it opens up the Offline Registration Page instead of the live Registration page.
  6. Don't bother when clicked Register button
    • EXPECTED RESULT: when user clicks Register then the Reminder dialog doesn't appear anymore -> restart the IDE a few times to verify it.


Test suite: Registration in more complicated conditions

Purpose: Test of Registration dialog behavior in multi user enviroment, behind a firewall, with an antivirus program.
Setup:
Note: The registration of IDE happens per user. However the registration.xml data are not collected next if the IDE finds then in NB_INSTALL-DIR/nb. NB_VERSION/servicetag/registration.xml

  1. Admin x user
    1. Install the IDE as administrator/root
    2. Run the IDE as normal user
    • EXPECTED RESULT: Press Register button or invoke it from menu -> there are no exceptions. Registration can be finished successfully. The xml files are written into the user directory.
  2. Wrong firewall settings
    1. User set up firewall to check when a process is connecting to internet (see issue 125688)
    • EXPECTED RESULT: check if the registration is working correctly. This case is difficult to simulate.
  3. Antivirus report
    1. because the Registration is collecting a data from users computer with an external tools then the behavior can be recognized by an Antivirus as "strange" behavior
    2. set up your antivirus program to be sensitive to such behavior and Register
    • EXPECTED RESULT: check if the registration is working correctly. This case is difficult to simulate.
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