You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



You are here: Mozilla MailNews Functional / UI Tests > LDAP Preferences

Feature Test Spec: Mail and News Component

Mail and News Component: LDAP Preferences

Written by Yulian Chang
Reviewed by Srilatha Moturi

References

Global Address Book & LDAP - UI Proposal http://www.mozilla.org/mailnews/specs/addressbook/LDAP.htm l

Addressbook Prefs Proposal to support LDAP
http://www.mozilla.org/mailnews/specs/proposals/LDAPAddressingPrefs.html

Global Address Book/Account
Specific LDAP - Version 2
http://www.mozilla.org/mailnews/specs/addressbook/LDAP4.html

  1. Areas to test:
    1. Preferences: Mail and Newsgroups: Address Books panel
    2. Mail Account Settings: LDAP Directory Server
    3. Typedown addressing: Mail Compose window
  2. Design of Dialogs:
    1. verify appearance of LDAP preference specific to Address Books panel
    2. verify the check boxes can be checked/unchecked and it holds
      1. holds when closing preferences
      2. holds when closing Browser
    3. verify the text boxes can take text entries
      1. valid
      2. invalid (no text entry or blank text box included)
    4. verify the radio buttons can be selected toggling when required and holds the selection
      1. holds when closing preferences
      2. holds when closing Browser
    5. verify the action buttons work
      1. verify OK button works as supposed
      2. verify Cancel works as supposed
    6. verify the access key
      1. New Directory - General tab
        1. n for "Name" focus
        2. h for "Hostname" focus
        3. b for "Base DN" focus
      2. New Directory - Advanced tab
        1. p for "Port Number" focus
        2. r for "Don't return more than X results" focus
        3. f for "Search filter" focus
    7. verify the banner text reflects the selected category
    8. verify preferences are intact after restart of program
    9. verify that the saved preferences are reflected when upgrading
  3. Functionality of Preferences:
    1. Address Books panel
      1. verify for the default selection: Local Address Books, in the Addressing Messages portion of this panel performs correct address autocompletion while composing a new message
      2. verify the drop-down list for "LDAP Directory Server:" lists all the directories, displaying a scroll bar if needed
      3. check the box for "LDAP Directory Server:" , select a directory and verify the correct address autocompletion for this combination
      4. uncheck the box for "Local Address Books", verify the correct address autocompletion for this combination
      5. uncheck the box for "LDAP Directory Server:", verify autocompletion is not performed when you address messages
      6. check the box for "LDAP Directory Server:", verify autocompletion is performed through various selection of Directory Server
        1. none
        2. default LDAP servers
        3. user added servers
      7. verify clicking the "Edit Directories..." button opens the "LDAP Directory Servers" dialog
      8. verify Address Book and LDAP directory server settings in Preferences window are global for all accounts
    2. LDAP Directory Servers dialog
      1. verify "Add" button is enabled
      2. verify "Edit" and "Delete" buttons are enabled with focus of any listed directory
      3. verify "Directory Server Properties" dialog appears when clicking "Add" button
      4. Creating new Directory
        1. Verify the dialog title is "Directory Server Properties"
        2. Verify the dialog consists of the following and the layout is correct
        3. "General" tab
          • "Name" text box
            • verify you can enter any character or combination of characters in this text box
            • verify the name is saved when closing the dialog
            • verify the data must be entered to create the directory
          • "Hostname" text box
            • verify any character or combination of characters can be entered in this text box
            • verify the Hostname is saved when closing the dialog
            • verify that both Name and Hostname are required to create a New Directory
          • "Base DN" text box
            • verify you can enter any character or combination of characters in this text box
            • verify entry can be empty and doesn't crash
            • verify it is saved when closing the dialog
          • "Port Number" text box
            • verify a valid port works (numeric digits - 6 digits)
            • verify "Port Number" is required
            • verify invalid port number does not crash (non-numeric digits)
            • verify the digit is saved when closing the dialog
          • "Bind DN" text box
            • verify it holds when changed
            • verify "Bind DN" is required for LDAP authentication
          • "Use secure connection (SSL)" checkbox
            • verify it holds when closing dialog
            • verify the port number changes to the default secure port number automatically
            • verify you can modify the default secure port number
            • verify that you get the search results if the server supports a secure port.
            • verify you don't get search result if the server doesn't support a secure port
        4. Offline tab - covered in the LDAP replication and sync
        5. Advanced tab
          • "Don't return more than X results" text box
            • verify a valid entry works
            • verify invalid entry does not crash (non-digit character or number with 6 or more digits)
            • verify the server returns only X results
            • verify a message displays in the footer if there are more messages than the maximum
            • verify the specified data is saved when closing the dialog
          • "Search filter" text box
            • verify any character or combination of characters can be entered in this text box
            • verify search filter applies to entries within the specified scope of the search
            • verify this field can be left empty to search without crash
            • verify it is saved when closing the dialog
          • "Scope" radio button
            • verify the server performs one-level search (retrieves information about entries one level below the distinguished name (<base_dn>) specified in the URL) if one-level radio button is selected
            • verify the server performs sub-tree search (retrieves information about entries at all levels below the distinguished name (<base_dn>) specified in the URL) if sub-tree radio button is selected
            • verify it holds when closing dialog or Browser
      1. Editing an existing Directory
        1. Make changes to various fields in the dialog and verify they hold after closing the dialog and the Browser
          • verify changes to the Name field
          • verify changes to the HostName field
          • verify changes to the Base DN field
          • verify changes to the Port Number field
          • verify changes to the "Don't return more than X results" field
          • verify changes to the " Search filter" field
        2. Make changes to various fields in the dialog and verify they work accordingly
          • verify changes to the Name field
          • verify changes to the HostName field
          • verify changes to the Base DN field
          • verify changes to the Port Number field
          • verify changes to the "Don't return more than X results" field
          • verify changes to the " Search filter" field
      2. Deleting an existing Directory
        1. verify the selected directory is deleted in LDAP Directory Servers dialog
        2. verify the deleted directory is not listed in the drop-down list for "LDAP Directory Server:"
        3. verify deleted directory is delected from addressbook pane
    3. Managing Directories
      1. Adding Multiple directories
        1. add sufficient number to fill the directory window to force the vertical scroll bar to appear
        2. add a directory with the same Name as another directory
      2. Adding fictitious directories
        1. verify you receive an error message
        2. verify you receive error message when adding a new server with incomplete information
          • blank Name
          • blank HostName
    4. Migration
      1. verify migrated prefs file from 4.x for the default LDAP server URI has changed
      2. verify all the default directories are migrated
      3. using a migrated profile and select a migrated LDAP directory to open compose window, verify autocompletion works properly without any error
  4. Functionality of Account Settings
    1. Server settings: LDAP Directory Server
      1. verify the drop-down list for "LDAP Directory Server:" lists all the directories, displaying a scroll bar if needed
      2. verify clicking the "Edit Directories..." button opens the "LDAP Directory Servers" dialog
      3. check the box for "Use a different LDAP server" and verify users are able to override the global LDAP settings on a per account basis
        • override with none
        • override with the same directory server as global setting
        • override with different directory server
        • override with invalid server
      4. uncheck the box for "LDAP Directory Server:" in global prefs. setting
        • override with none
        • override with valid directories
        • override with invalid directory
      5. with multiple compose windows open, verify autocompletion performs for each
      6. set up multiple accounts and verify autocompletion works for each account
      7. verify each account can be associated with a specific LDAP directory servers
      8. uncheck the box for "Use a different LDAP server" and verify global settings are in effect again
    2. LDAP Directory Servers dialog
      1. Same as in Preferences
  5. Typedown Addressing
    1. verify autocompletion box pops up with matching entries
    2. verify autocompletion box displays a scroll bar as needed
    3. verify the only one matched entry in Local Address Book or Directory Server is preselected
      1. Local Address Books
        • check Local Address Books only. Verify no autocompletion box popups up
        • check Local Address Books and Directory Server
      2. Directory Server
        • check Directory Server only. Verify no autocompletion box popups up
        • check Local Address Books and Directory Server
    4. verify autocompletion box doesn't pop up if autocompletion is turned off
    5. verify only one selection is allowed in the matching list
    6. verify the selected entry is displayed correctly in the compose window
    7. verify autocompletion works for every entry of addressing field in the compose window
    8. verify autocompletion functions properly with global LDAP directory server preferences
    9. verify autocompletion functions properly with override global LDAP directory server preferences
    10. with multiple Compose windows open, verify autocompletion performs for each
    11. verify the system doesn't hang in the following conditions:
      1. hit the down-arrow key to start scrolling while autocomplete looking for all the name and displaying them. Note: testing via 56k modem
      2. turns off the service of directory server in the remote site
  6. LDAP Authentication
    1. verify LDAP autocomplete support authentication
    2. verify LDAP addressbook support authentication
    3. verify LDAP authentication dialog box, "LDAP Server Password Required" shows up if Bind DN is specified in the Directory Server Properties | General Panel for a given Directory Server
      1. verify LDAP authentication dialog box, "LDAP Server Password Required" has correct text
      2. valid Bind DN
        • verify autocomplete dropdown list pops up if correct password is provided
        • verify autocomplete doesn't perform if password isn't provided or isn't correct
        • verify addressbook serach works if correct password is provided
          • ldap addressbook quick search in Address Book window, Sidebar and Select Addressees dialog
          • ldap addressbook advanced search
        • verify addressbook search doesn't perform serach if incorrect passwrod is incorrect or isn't provided
      3. invalid Bind DN
        • verify autocomplete doesn't perform
        • verify LDAP addressbook search doesn't perform
    4. verify LDAP autocomplete and addressbook search support authentication by using the Bind DN not email address
    5. verify autocomplete dropdown list pops up as soon as password is entered
    6. verify LDAP authentication dialog doesn't open if password is remembered by password manager
    7. verify error message is displayed if incorrect password is entered for LDAP authentication