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