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 > POP Account

Feature Test Spec: Mail and News Component

Mail and News Component: POP Account

Written by Sheela Ravindran

References

Description

This Test spec covers test cases specific to POP accounts and there preferences. POP account preferences are different from Imap accounts. Messages and folders are created and stored locally. POP3 Protocol is used to allow a workstation retrieve messages from the server. By default, once these messages are downloaded from the server they are deleted from the server and kept locally to that machine. However, there are preferences that can be used to leave a copy of the message on the server for future downloading in case of same accounts used on multiple machines.

The test cases in this document does not cover any prefrences with offilne Imap or POP accounts. Please refer to an offline test spec for more specific offline behavior.

POP3 Log File Setup

If you report problems which occur when using POP3 protocol, it is often useful to include a log attached to the bug report. Here are the instructions for capturing a log.

Windows 95/98: Create "c:\tmp" for the log file to reside in if the directory does not exist. Insert the following lines into your
autoexec.bat file:

Set NSPR_LOG_MODULES=POP3
Set NSPR_LOG_FILE=c:\tmp\[filename]

The filename can be defined by you. Reboot.
Unix: run the following commands before running mozilla, or add them to the proper rc file (like ~/.cshrc for csh)

(for tcsh / csh):
setenv NSPR_LOG_MODULES POP3
setenv NSPR_LOG_FILE /tmp/[filename]
Mac: Create a text file that contains the desired commands in a text editor such as BBEdit:

ARGS: -mail
ENV:NSPR_LOG_MODULES=POP3
ENV:NSPR_LOG_FILE=[filename]

The filename can be defined by you. Save this file and drag and drop this file on the Netscape/Mozilla application
icon. The log file is created in the seamonkey folder.

POP Specific Preferences

Edit|Accounts and Settings

Automatically download any new messages
Leave messages on the server
Delete messages on the server when they are deleted locally
Disk space:
a.Do not download messages locally that are larger than [50] KB

Other related perferences which influence a different behavior of POP account

Check for new mail at start up
Check for new messages every [10] minutes

Edit|Preferences
Disk Space
b.Compact folders when it will save over [100] KB-Preference panel
Play a sound(when new message arrives)

Default Settings
Below are the default settings of a POP account that is created in a new profile. They are as follows:

Preferences Default Value
Automatically download any new messages Off
Leave messages on the server Off
Delete messages on the server when they aer deleted locally Off
Do not download messages locally that are larger than N kb Off
Compact folders when it will save over N kb Off
Check for new mail at start up On
Check for new messages ever N minutes On
Play a sound On

POP Functionality Tests

Automatically download any new messages

  • Verify this pref is unchecked by default with a new profile and new account
    • Verify when unchecked with Biff pref turned on, we only indicate with a Biff arrow at the account level
    • Verify when Get Message button or menu item is used we download the message from the server.
    • Also when creating a new profile with pop account and giving the password, we should not auto download messages without a explicit Get Message by the user.
  • Verify this pref is checked works according to the Biff interval perf-Check for new messages every [10] minutes
    • Verify that the specified time interval when there is a new message on the server the message should be dowloaded
    • Also verify before the time limit and biff goes off if you do a Get Message, we still download the message from the server regardless of the Biff interval.
  • Verify creating a new profile and changing the pref to automatically download any new messages should retrieve messages after providing the correct password.

Leave messages on the server

  • Verify when this pref is checked there is a copy of every message that is downloaded left on the server
  • Verify every new messsage received should leave a copy of that message on the server before the client retrieves that mail
  • Verify when this pref is unchecked there are no messages left on the server. All messages are downloaded locally.
  • Download messages from a single machine
  • Download messages from multiple machines for the same account.
  • Download messages from 2 different muliple POP accounts in a single profile

This pref only keeps track of messages in Inbox folder. This preference will not keep track of messages that are moved or stored in any of the local folders. This Pref will not keep track of any messages that is filtered and moved to another folder.

Delete messages on the server when they are deleted locally

This preference works as stated only after user clicks on the Get message button or have Biff settings turned on. In which case there is a connection made to the server and messages will be removed from the server. This preference should be checked when you have left copies of messages on the server.

  • Verify when this pref is checked the messages are deleted on the server when you remove them from the inbox on the machine. This can be verified by creating a new profile with the same account. The message that was deleted from the client should not reappear with the new download.
  • Verify when this pref is checked and the message is moved from the inbox to any other folder, message gets deleted from the server. The message should be copied into the destination folder and then deleted from the inbox.
  • Verify when this pref is unchecked the messages are not deleted on the server when they are deleted locally. This can verified by creating a new profile on the same machine or a new machine and downloading the messages. The message that was deleted locally should still be there on the server and downloaded with the new profile.
  • Verify deleting a message followed by a Get message will delete the message on the server
  • Verify deleting a message followed by a Biff interval will also delete the message on the server

Disk Space Preference

a. Do not download messages locally that are larger than [50] KB- Accounts and Sever settings panel

  • Verify this perf is turned off by default
  • Verify this pref has a default value as [50] kb size. Also verify that you can change the size in the text box.
  • Verify this perf checked should not download message which exceeds the size specified in the brackets
    • Verify the message that exceeds the threshold shows the following when the message is displayed in the message pane: " Truncated! This message exceeded the Maximum Message Size set in Preferences, so we have only downloaded the first few lines from the mail server. Click here to download the rest of the message".
    • Verify by clicking the link" here " downloads the message completely. This should automatically select the message in the thread pane and also load the message pane with the complete message.

b. Compact folders

1. Pref: Compact folders when it will save over [100] KB

  • Verify this perf is turned off by default
  • Verify this pref has default value as [100]kb. Also verify that you can change the size in the text box.
  • Verify this perf checked and reaches the threshold for cleanu displays the following dialog:
  • "Do you wish to compact all local folders and offline folders to save disk space" "OK" "Cancel"
  • Clicking "OK" should compact all local folders and the inbox where the space can be saved
  • Verify when compaction is finished the file size of the folders that was compressed are changed to smaller size
  • This can be verified using a file manager like Explorer etc. and looking into the profiles directory.
  • Clicking "Cancel" should not compact any folders

2. Menu Item: "Compact Folders"

  • Verify from menu item " Compact Folders" does compact folders. This can be verified as stated above
  • Verify even with the perf checked you can still start the compaction manually with the menu item

3. Context Menu Item: "Compact this folder"

  • Verify from context menu item when a folder is selected compacts only the selected folder
  • Verify even with the pref checked you can still compact a single folder manually with the context menu item

Popstate.dat generated file which keeps track of message download

  • Keeps track of which message to remove after messages has been downloaded from the server
  • Also keeps track of not downloading messages that have been already downloaded locally with leave messages on the server pref checked
  • Interrupt message download of pop account by clicking " Stop" button should still not download messages twice. There should not be any duplicates when the message download is interrupted and continued by a " Get Message".
  • Verify popstate.dat updates when deleting messages in the inbox.

Check new mail at start up

  • Verify this pref is checked by default on the first or default pop account
  • Verify this perf checked should prompt the user with the password dialog to login
  • Verify after authenticating successfully we check to see if there any new messages that needs to be downloaded by the user. This will be indicated by a Biff green arrow at the account level
  • Verify messages are notwe do not download the messages untill the user clicks on Get Message button.

Check for new messages for every [N] minutes

  • Verify when only this pref is checked we just indicate with a green arrow at the account level
  • Verify we do not download the message unless a Get message is executed OR Automatically download messages perf is checked.

Migration of a POP account from 4.x

  • Verify you can migrate a pop account from 4.x to 6.x
  • Verify that when you migrate "Inbox" under " Local Mail" will now be under the its account name. Under the account name verify you have inbox, sent, drafts, template and trash folder created.
  • Verify there is also a seperate account item called " Local Folders" which is different from the terminology "Local Mail" from 4.x. The Local Folders should consits of Unsent messages, sent, drafts, templates and trash folder. These folders under "Local Folders" are created once in a profile whether the account is migrated or created newly. Every profile includes one set of " Local Folders" with its respective folder as mentioned above regardless of how many different accounts you have in that profile
  • Verify that drafts, templates from different accounts in a profile can be save to local folder's sent, drafts, templates etc.
  • Change one of the preferences in a 4.x profile. Migrate that account to 6.x. Verify the preference that you changed in 4.x is carried over during migration.
  • Verify migrated account is usable by composing a new message. Send and receive the message.

Visual /Feedback

  • Status bar indicating the message download. Example: Downloading message 1 of 100...
  • Progress bar should show the total progress of message download.
  • Show the status bar while building summary file. Example: Building summary file for inbox ..

Bug related and other scenarios for POP Testing

  • Message files stored locally- Verify the .msf file can be deleted and rebuilt automatically
  • Interrupt Get messages with stop button and redownload messages
    • Verify there are no duplicate mails in the inbox
    • Verify that it keeps track of number of messages already downloaded and should continue. Should not download messages from the beginning.
    • Check the number of messages on the server prior to downloading. Also verify when interrupting and redownloading the messages are not lost.
    • Verify the status bar and make sure that we keep track of the message download progress.
    • Verify we do not dowload the message from the beginning.
  • Enter wrong password at the password dlg prompt. Verify the password dialog should reappear till the user clicks on "Cancel" button.
  • Create a Brand new Profile with a default POP account
    • Verify this includes the local folders
    • Verify this includes the default American Templates which are ready to use
  • Create more than one POP account in a profile
    • Verify you can log into both the accounts
    • Verify the messages can be manually downloaded
    • Verify messages can be downloaded using biff
    • Verify sending messages works
  • Using POP account send messages later. Verify the messages are stored in the unsent message folder in the local folder