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/Address Book Search

Feature Test Spec: Mail and News Component

Mail and News Component: LDAP/Address Book Search

Written by Yulian Chang

References

MachV/Mozilla: Mail: Address Book
Address Book Search toolbar screen

LDAP/Address Book Search

Addresses Book Window
Address Selectect Addresses Dialog
Address Book Sidebar

Addresses Book window

  1. Search LDAP directories
    1. verify LDAP directories displayed in left, Address Book Pane. They are below the Personal Address Books
    2. verify adding additional LDAP directories. Added Directory servers should appear in Address Book Pane after restart
      1. Address Book Window | File | New | LDAP Directory
      2. Preferences
      3. Mail and NewsGroups Account Settings
    3. verify the "Properties" Toolbar is enabled if an LDAP server has focus
    4. verify the Edit:"Server Properties" menu item is selected if an LDAP server has focus
    5. verify "Directory Server Properties" dialog is opened
      1. by clicking the "Porperties" Toolbar button
      2. by double clicking on a selected directory
      3. by selecting Edit menu | Properties
    6. verify a window displaying the properties for the selected entry is opened by clicking the "Porperties" Toolbar button if a directory entry has focus
    7. verify edditting and LDAP directories and saving the server properties
    8. verify edditting and LDAP directories and canceling it
    9. verify Single Click/Selection of Directory displays results of last search (or nothing if no search has been performed) in the Result Pane
    10. verify "Delete" button in the Toolbar is enabled if an LDAP server has focus
    11. verify "Delete" button in the Toolbar is disabled if a directory entry has focus
    12. verify deleting LDAP directory with confirmation dialog displayed
    13. verify deleted LDAP directory in Address Book gets removed in variuos places
      1. LDAP Preferences
      2. Per Account Addressing settings
      3. Address Book Sidebar
      4. Select Addresses dialog "Look in" dropdown list
  2. Building Queries
    1. Search Bar
      1. verify when a LDAP directory is selected in the left pane, the descriptive text on the search Bar reads, "Name or Email contains:"
      2. verify the directory is searched with the criteria and the results are displayed in the Results Pane
      3. verify the search bar performs a search based on
        • Display Name
        • First Name
        • Last Name
        • Email
      4. verify searching in Search Bar, the type-down is dynamic
      5. verify searching for an address using migrated LDAP directory servers
      6. verify searching for an address using existing LDAP directory servers
      7. verify searching for an address using edited LDAP directory servers
      8. verify the ability to add LDAP directory search results to a personal Address Book
      9. verify clicking "Add to Address Book" button in Card Pane would open the New Card dialog pre-populated with available data
      10. verify a drag and drop from a Local AB to an LDAP directory is not permitted
      11. verify a drag and drop from an LDAP directory to an LDAP directory is not permitted
      12. verify moving a copy of Directory entry to personal address book by dragging and dropping
      13. verify user can add LDAP search results to one of the personal address books by "Copy" and "Past" from the "Edit" menu
      14. verify Card Pane displays detailed information about the entry copied from LDAP search results
      15. verify user can add LDAP search result by clicking "Add to Address Book" within the Card Pane
      16. verify printing Card Pane information about the entry copied from LDAP search results
      17. verify editing the entry in personal address book added from LDAP search results
      18. verify launching a New Message Compose window with "To" field populated with entry copied from LDAP
      19. verify the entry in personal address book added from LDAP search results cannot be moved back to LDAP
      20. verify removing the entry in personal address book added from LDAP search results
      21. verify searching results from LDAP directory in Address Book are not editable in Card Edit Dialog
        • Name panel fields
        • Address panel fields
        • Inst Msg panel fields
        • Other panel fields
      22. verify the look of a non-editable card entry within the Card Pane is potentially more muted than an editable entry
      23. verify Single Click/Selection of LDAP Directory in Sidebar display results of last search within the Results Pane of nothing if no search has been performed
    2. Advanced Search
      1. verify the "Advanced Directory Search" window opens when a LDAP directory is selected and the user clicks on the "Advanced Search" button in the Address Book window Search Bar
      2. verify the title for the parent modal window is correct "Advanced Directory Search", this window is resizable
      3. verify Advanced Directory Search window opens with the selected directory
      4. verify selection of Directory, drop down menu of available LDAP Directories
      5. verify the descriptive text on the drop down menu reads, "Search for names in:"
      6. verify the drop down menu defaults to the LDAP directory that was selected when the user selected "Advanced"
      7. verify the initial state of this window has "Name" w/popup list, "contains" w/popup list, and a text entry field
      8. verify only one search row with widgets is displayed when creating a new search
      9. verify there are two radios buttons: "Match all of the following" , "Match any of the following" and verify they work
      10. verify the More/Fewer buttons (popups with other criteria) work
        • verify adding another search criteria line by More button
        • verify removing last search criteria line by Fewer button
      11. verify criteria area will scroll when more than 3 criteria row are needed.
      12. verify the number of potential search criteria rows is unlimited
      13. verify the criteria row is not empty when focus leaves the last criteria row (clicking Enter, clicking out of row, tabbing out)
      14. verify the "Search" button changes to "Stop" when a search is in progress
      15. verify user can stop the current search if desired
      16. verify that invalid searches return nothing (invalid searches can happen when switching from Or to And after search criteria has been entered)
      17. verify clicking Clear button clears any settings or text in all the criteria rows and clears the Results pane
      18. verify that the search criteria holds after searching and closing
      19. verify that the search criteria holds after closing Address Book, reopening and searching on the same directory
      20. verify that all of the search criteria clears if you change directories
      21. verify the tabbing order and correctness
    3. Verify the Cancel button works
    4. Verify the Help button works
  3. Search Results
    1. verify Status Bar is empty when the search dialog is first opened
    2. verify how the user last left the bar is remembered
    3. verify Results Pane lists the contents of offline directory or the search results from an LDAP
    4. verify Single Click/Selection of Directory displays results of last search (or nothing if no search has been performed) in the Result Pane
    5. verify the throbber is animated while search is in progress
    6. verify "Search" button changes to "Stop" when a search is in progress
    7. verify progress of the search is displayed in the Status bar
    8. verify once the search is complete, the number of matches is displayed: "X matches found"
    9. verify the results of search are displayed in the lower half of the dialog.
    10. verify the Results Thread Pane works identical to the Mail Thread Pane. Header column can be added/removed
    11. verify search results can be sorted by header columns
    12. verify the default sort order is Name but the dialog should remember the user's last settings
    13. verify Ctrl and Shift keyboard commands are available to select multiple items
    14. verify it's able to stop a search in progress using Stop toolbar button
    15. verify you get a message asking you to refine search if query exceeds maximum server value
    16. verify the blur string "0 Matches Found" is displayed in the Results pane if no matches are found during an LDAP Search in the Address Book

Select Addresses Dialog

  1. Launch
    1. verify it's accessible from the Mail Compose window only
      1. clicking on the "address" button on the Toolbar
    2. verify the Address Selection Dialog is a modal to the Compose window
  2. Directory search
    1. verify LDAP Directories displayed in Address Book all show up in Selectet Addresses dialog "Look in" dropdown list
    2. verify user can "Look in" LDAP directories
    3. verify the Select Addresses Dialog is resizable
    4. verify the Select Addresses Dialog is modal to the Compose window
    5. verify the search bar performs a search based on
      1. Display Name
      2. First Name
      3. Last Name
      4. Email
    6. verify Results Pane is empty if no matches are found for an LDAP directory search
    7. verify user can select one or more entries in the results pane
    8. verify recipients are added by clicking the "To", "Cc" or "Bcc" buttons
    9. verify double clicking on an entry adds the person to the "To" list
    10. verify user can select one or more entries in the "Address message to:" Pane to remove
    11. verify serach results from LDAP Directory is not editable in Card Edit dialog

Address Book Sidebar

  1. Directory Search
    1. verify LDAP Directories displayed in Address Book all show up in Address Book Sidebar
    2. verifiy user can "Look in" LDAP Directories
    3. verify the descriptive text on the search Bar reads, "for:"
    4. veirify user can perform Quick Search in LDAP Directories
    5. verify the search bar performs a search based on
      1. Display Name
      2. First Name
      3. Last Name
      4. Email
    6. verify searching in Search Bar, the type-down is dynamic
    7. verify searching for an address using migrated LDAP directory servers
    8. verify search results display in results pane with two header columns:
      1. Name
      2. Email
    9. Verify Results Pane is empty if no matches are found
    10. verify Results Pane is empty if LDAP directory is unreachable or invalid