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 > Mail & News: Get Messages

Feature Test Spec: Mail and News Component

Mail and News Component: Get Messages

Written by Sheela Ravindran

References

UI Specification: Get Message & Log in to Account at Startup, Message compose

Description

Get New Messages menu item and Get Msg Toolbar button retrieves new messages from both Mail & News servers.

Test cases that are greyed are not implemented.

Basic Functionality

  1. Get New Messages
    1. Mail/News message retrieval from various windows, verify Get Msg works in each of these views, verify visualy a green arrow appears and sound(TBD) when get message button or menu item is clicked for all the following:
      1. 3 Pane UI
        • Menu
          • Get New Messages
          • Get New Messages for -------> drop down list.
            • Get All New Messages ----"Ctrl+Shift+T"
            • "Account 1"
            • Account 2" etc.
          • Use each of the above File Menu items to Get Messages for single accounts and All accounts
            • Verify selecting "For Account1" retrieves messages for that account only with password saved from previous session
            • Verify selecting "For Account1" Prompts with the password dialog and upon sucessful log in, retrieves messages for that account only
            • Verify selecting "Get All New Messages" retrieves messages for all MAIL accounts to which the user is currently authenticated
            • Verify when a Newsgroup has focus, the File Menu has "Get Next X Messages" and "Update Message Count"
            • Verify selecting News server "Get New Messages" is disabled
            • Verify when a Newsgroup is selected and "Get All New Messages" retrieves messages for all the authenticated mail accounts and including the selected Newsgroup.
            • Verify when a Newsgroup is selected and a mail account is selected from the file menu dropdown messages are retrieved for both the mail account as well as the newsgroup account.
          • Mnemonic "Ctrl+T" currently
        • Toolbar Button
          • Clicking "Get Msgs" button will retrieve messages for the selected Mail account or newsgroup
          • Get Msg drop down menu - contains the name of each account separately, plus an "All Accounts" option.
            • Verify visually that the drop down " Get Msgs button will not show any News accounts"
          • Use the drop down menu to select an account and retrieve mail for the selected account only. Only one account can be selected at a time using the drop down menu.
            • Verify selecting "For Account1" retrieves messages for that account only with password saved from previous session
            • Verify selecting "For Account1" Prompts with the password dialog and upon sucessful log in, retrieves messages for that account only
            • Verify selecting "Get All New Messages" retrieves messages for all MAIL accounts to which the user is currently authenticated
            • Verify when a Newsgroup has focus, the File Menu has "Get Next X Messages" and "Update Message Count"
            • Verify when News Server is selected "Get Msg" button updates message counts
            • Verify when a Newsgroup is selected the dropdown menu from the toolbar button lists the selected newsgroup account along with all the mail accounts
            • Verify when a Newsgroup is selected and "Get All New Messages" retrieves messages for all the authenticated mail accounts and including the selected Newsgroup.
            • Verify when a Newsgroup is selected and a mail account is selected from the button dropdown messages are retrieved for both the mail account as well as the newsgroup account.
        • Context menu for Folder Pane
          • Mail Account, Inbox, Newgroup selected-right mouse click, menu reads "Get New Messages"
          • News server selected- right mouse click, menu reads "Update Message Counts"
      2. 2 Pane UI -Folder pane hidden
        • Menu
          • Get New Messages
          • Get New Messages for -------> drop down list.
            • Get All New Messages ----"Ctrl+Shift+T"
            • "Account 1"
            • Account 2" etc.
          • Use each of the above File Menu items to Get Messages for single accounts and All accounts
            • Verify selecting "For Account1" retrieves messages for that account only with password saved from previous session
            • Verify selecting "For Account1" Prompts with the password dialog and upon sucessful log in, retrieves messages for that account only
            • Verify selecting "Get All New Messages" retrieves messages for all MAIL accounts to which the user is currently authenticated
            • Verify when a Newsgroup has focus, the File Menu has "Get Next X Messages" and "Update Message Count"
            • Verify selecting News server "Get New Messages" is disabled
          • Mnemonic "Ctrl+T" currently
        • Toolbar Button
          • Clicking "Get Msgs" button will retrieve messages for the selected Mail account or newsgroup
          • Get Msg drop down menu - contains the name of each account separately, plus an "All Accounts" option.
            • Verify visually that the drop down " Get Msgs button will not show any News accounts"
          • Use the drop down menu to select an account and retrieve mail for the selected account only. Only one account can be selected at a time using the drop down menu.
            • Verify selecting "For Account1" retrieves messages for that account only with password saved from previous session
            • Verify selecting "For Account1" Prompts with the password dialog and upon sucessful log in, retrieves messages for that account only
            • Verify selecting "Get All New Messages" retrieves messages for all MAIL accounts to which the user is currently authenticated
            • Verify when a Newsgroup has focus, the File Menu has "Get Next X Messages" and "Update Message Count"
        • Context menu
          • Mail Account, Inbox, Newgroup selected-right mouse click, menu reads "Get New Messages"
          • News server selected- right mouse click, menu reads "Update Message Counts"
      3. Address Book (using Inbox icon from Communicator Task Bar)
        • Component Bar
      4. Browser Window (using Inbox icon from Communicator Task Bar)
        • Component Bar
      5. Editor Window (using Inbox icon from Communicator Task Bar)
        • Component Bar
    2. Password (Mail & News)
      1. Preference "Check for new mail at startup" for default account (POP and IMAP) is turned ON
        • Verify password dialog appears and upon authentication the new messages are received for that account
        • Verify for POP when Get Msg is clicked from menu item or button in the toolbar the user is prompted with the password dlg
        • Upon authentication the messages are retrieved from the server
      2. Preference "Check for new mail at startup"-checked in Account Settings
        • Verify first account has the log on turned on by default(IMAP and POP)
        • Verify all other accounts has the preference "turned off" by default for existing and newly created.
        • Verify other accounts has preference "turned on" by user prompts with the password dlg on first log on.
        • Verify upon authentication is successful, messages are retrieved for all the accounts.
      3. No password
        • verify new messages are not retrieved when leaving the password dialog empty then clicking OK
        • verify a Login failed dialog comes up
        • verify clicking OK brings back password dialog to enter the right password
      4. Incorrect password
        • verify new messages are not retrieved when giving an incorrect password then clicking OK
        • verify a Login failed dialog comes up
        • verify clicking OK brings the password dialog to enter the right password
      5. After incorrect password, re-enter correct password in same session
        • verify new messages are retrieved after entering the correct password in the second password dialog window
      6. Password Saved from previous session (Remember Password preference=checked located in Preference/Password)
        • verify no password dialog comes up when doing a Get Msg the first time for accounts that have Remember Password checked.
        • verify no password dialog comes up when doing a Get Msg the first time for all the other accounts that user has selected in the account settings and the new messages are retrieved.
    3. Enable/Disable conditions: (News)
      1. Get New Messages
        • verify this is enabled (when a Mail Server, Newsgroup or Mail Folder is selected)
        • verify this is disabled when a News Server is selected
      2. Get Next [# entered in Account Setup] Messages
        • verify this is enabled when a Newsgroup is selected
        • verify this is disabled when a News Server, Mail Server or Mail Folder is selected
      3. Update Message Count
        • verify this is enabled when Newsgroup has focus
    4. Interrupting Get New Messages operation
      1. Canceling Get Msg operation right away (you may have to have a very large number of new messages to this test this in order to slow the download process enough to Cancel)
        • verify the downloading process is stopped
      2. Cancel during downloading of mail messages (may have to have a very large attachment for this test to slow the download process enough to Cancel)
        • verify the downloading process is stopped
      3. Cancel during downloading of news messages (may have to have a very large number of new messages to this test this in order to slow the download process enough to Cancel)
        • verify the downloading process is stopped
      4. After interrupting get mail operation, get mail again
        • verify the Get Msg toolbar button and Get New Messages menu item are enabled
        • verify all messages are downloaded
    5. Items to check in all download cases for Mail and News messages
      1. verify Progress dialog corresponds to action (may have to have a very large number of new messages to this test this in order to display the Progress dialog)
      2. verify Status bar text corresponds to action (may have to have a very large attachment for this test to slow the download process enough to see the status display)
      3. verify the mail folder returns to useable state (enabled and can navigate, etc.)
      4. verify newsgroup returns to useable state (enabled and can navigate, etc.)
      5. verify the proper number of news headers news downloaded (per set number in Account Setup)
    6. Mail Inbox in various states
      1. verify Get New Messages from the menu or Get Msg toolbar button works with Mail Inbox in the following states:
        1. Inbox closed
        2. Inbox Empty, no messages
        3. Sorted in different columns
          • Ascending order
          • Descending order
          • by Thread
            • Collapsed
            • Expanded
          • by Subject
          • by Sender
          • by Date
          • by Unread
          • by Size
          • by Status
          • by flag
        4. All messages read
        5. All message unread
    7. Get New Messages - Multiple Accounts (have at least 2 POP, 2 IMAP, 2 News and 2 other (TBD), Uncheck the checkbook for "Check for new mail every [] minutes" for each account.(Biff turned Off)
      1. Send message/s to SOME of your accounts: 1 POP, 1 IMAP, 1 TBD and 1 Newsgroup, verify clicking the Get All New Messages button gets the mail for ALL accounts for which the user is currently logged plus the account that is currently selected. Mail should first be retrieved for the account that is selected (and then the other accounts the user is currently logged into).
      2. If the user is not currently logged into the account selected, the Logon Dialog is displayed, gets the new message/s for each of the mail accounts.
      3. Verify if a Newsgroup is selected in the folder pane and a Mail account is selected from the "Get Msg" drop down, then messages are retrieved for both the newsgroup and the mail account. Verify the selection still remains on the newsgroup in the folder pane and does not change.
      4. Send message/s to ALL of your accounts: verify clicking the Get All New Messages button from the drop down gets the mail for ALL accounts for which the user is currently logged plus the account that is currently selected. Mail should first be retrieved for the account that is selected (and then the other accounts the user is currently logged into).
      5. Send message/s to newsgroups only: clicking Get Msg does not display visuals for mail accounts:
        • verify for each newsgroup you sent a message to (located in the SideBar), the inbox contains a little green diamond
        • TBD verify status bar reads - TBD
      6. Select a Newsgroup in the folder pane and verify "Get Msg button retrieves new messages for the selected newsgroup only.
    8. New Messages appearance in Inbox of mail account and newsgroup
      1. Verify when you click Get Msg and a new message is received, the Thread pane scrolls to top if your sort order is Descending or to the bottom if your order is Ascending, allowing the new message to be visible immediately.
    9. General Feedback for Getting Mail and News
      1. During mail download for Mail and News
        • Status/progress bar (can only be seen if the download takes enough time to warrant one)
      2. After mail download for Mail
        • Mail notification indicator (Inbox with a little green arrow)
        • System Sound (Mac and Windows)(Linux not yet implemented)
        • Focus of window after message retrieval
      3. Error messages are informative and correct

Basic Functionality Tests - Preferences tied to Get Messages (Edit|Account Setup)

  1. Server panel - Mail
    1. Check box for "Check for new mail every [ ] minutes"
      1. check box =checked, minutes=10; verify Get Msg works immediately, overriding the minutes set in this preference
      2. check box=unchecked, minutes=10; verify Get Msg works immediately, overriding the minutes set in this preference
    2. Check box for "Automatically down load any new messages"
      1. check box =checked, minutes=10; verify Get Msg works immediately, overriding the minutes set in this preference
      2. check box=unchecked, minutes=10; verify Get Msg works immediately, overriding the minutes set in this preference
  2. Server panel - News
    1. Check box titled "Always use name and password"
      1. check box =checked, verify when Get Msg is clicked, the "Netscape User Prompt" dialog comes asking for user name, then the "Password Entry" dialog comes up asking password, give correct information then verify operation is completed
      2. check box=unchecked, verify when Get Msg is clicked no user or password dialogs come up and the operation is completed
    2. Check box titled "Ask me before downloading more than [ ] messages"
      1. check box =checked, verify when Get Msg is clicked, a "Download Headers" dialog comes up, if there are more messages to be downloaded than the number entered in this box
      2. check box=unchecked, verify when Get Msg is clicked and there are more new messages than the number set in this box, that no "Download Headers" dialog comes up and all the new messages are downloaded.

Advanced Functionality Tests - Preference for downloading New messages (Edit|Account Setup)

  1. "Ask me before downloading more than [N] messages" =OFF or unchecked. Get New Messages results=No Warning
    1. There are messages on server.
    2. No new messages on server. Check for appropriate (status bar) message.
    3. Interrupt download.
    4. Download after previous interruption.
    5. Download large number of messages.
    6. Perform when opening news group
    7. Perform when news group already opened (getting more messages)
  2. "Ask me before downloading more than [N] messages" = ON or checked.
    1. Open a group with no more than N messages to download. No warning should appear.
    2. Open a group with no messages to download. No warning should appear.
  3. "Ask me before downloading more than [N] messages" = ON or checked. Open a group, get all messages
    1. There are more than N new messages on server.
    2. Cancel before download
    3. Interrupt download.
    4. Download after previous interruption.
    5. Download large number of messages.
  4. "Ask me before downloading more than [N] messages" = ON or checked. Open a group, get N messages
    1. There are more than N new messages on server.
    2. Interrupt download.
  5. "Ask me before downloading more than [N] messages" = ON or checked. Get New Messages, group already open
    1. There are less than N new messages
    2. There are more than N new messages, use download all option in warning dialog
    3. There are more than N new messages, use download N option in warning dialog
      1. don't mark remaining headers read
      2. do mark remaining headers read
    4. There are no new messages
    5. Interrupt download
  6. "Ask me before downloading more than [N] messages" =OFF or unchecked. Get Next N (older) messages, group already open
    1. There are N older messages not retrieved. Get Next N messages, check for proper amount downloaded. Verify they're the older messages, not new.
    2. There are way more than N older messages not retrieved. Get Next N messages repeatedly. Verify each time downloads older messages, not new or duplicates.
    3. Repeat Get Next N until there are no more (older) messages to get. Verify handling, appropriate message.
    4. Get N older messages after:
      1. initial chunk download doesn't mark remaining headers read
      2. initial chunk download does mark remaining headers read
  7. "Ask me before downloading more than [N] messages" =OFF or unchecked. Using both Get New Messages and Get Next N
    1. Get New Messages after having done a partial download and a Get Next N, verify appropriate new messages are retrieved.
      1. there are no new messages, but there are older messages
      2. there are new messages, but no older messages
      3. there are new messages and older messages
    2. Alternate Get Next [N] Messages and Get New Messages a few times, verify each gets it appropriate older vs. newer messages.
  8. Download warning preference setting
    1. Check default N size in edit box on first enable, verify it's set at 500
    2. Check the download warning dialog for accuracy when default value of 500 is exceeded during download.
    3. Check general properties/aesthetics of download headers warning dialog
    4. Enable/disable from preferences dialog
      1. enable from disabled state
        • use existing value for N
        • change value for N
      2. disable from enabled state
        • manually clear edit box N number
        • leave edit box N as is
    5. Change N from warning dialog
      1. Verify number changes in dialog
      2. Verify proper (changed) number of now downloads
      3. Verify preferences dialog now shows changed N
  9. Special (ref bug #77400): Verify unread count after using [N] download to download only a few headers (do not mark remaining read), read a few messages then exit and return.