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 > Save As: File|Template

Feature Test Spec: Mail and News Component

Mail and News Component: Save As: File|Template

Written by Sheela Ravindran and Ester Goes

References

UI Specification: Not available yet
Other: Not available yet

Description

These test scenarios for the functionality should be tested for saving received messages as files (.txt; .html;) and as Templates for composing new messages.

The test cases that are greyed out are not a feature in this project. These test cases are not implemented yet for this project.

Basic Scenarios - Saving Message - File or Template

  1. Windows from which a Mail/News message can be Saved as a File or Template
    1. 3 Pane UI
    2. Message Window
  2. How to access "Save As>" for selected News/Mail messages
    1. Menu item while in 3-Pane window or stand alone Message window
      1. File|Save As>|File (.txt format)
      2. File|Save As>|File (.html format)
      3. File|Save As>|Template
    2. Context menu (right mouse click on the message)
      1. Save Message..
        • verify the "Save Message" dialog comes up
        • You have the same choices of file formats as listed when you use the Menu item File|Save As>|File option.
  3. Number of messages that can be Saved at one time
    1. Single message
      1. File|Save As>|File (.txt)
        • verify you can save a message as a .txt file by selecting the File type "Plain Text", the "Save Message As" dialog accepts the location and the file name you entered, dialog closes after the save, and message is still located in the folder from which you viewed it from
        • verify the saved .txt message is saved in the correct location and it can be opened a text editor, Navigator 4.x and 6.0 browser and one other browser of choice. The message should be displayed WYSIWYG (any headers visible in the display are saved on disk)
      2. File|Save As>|File (.html)
        • verify you can save a message as a .html file by selecting the File type "HTML files", the "Save Message As" dialog accepts the location and the file name you entered, dialog closes after the save, and message is still located in the folder from which you viewed it from
        • verify the saved .html message is saved in the correct location and it can be opened in Navigator 4.x and 5.0 and other browser of choice. The message should be displayed WYSIWYG (any headers visible in the display are saved on disk)
      Note: Currently in this project while saving a received message from the 3 pane or stand alone we give .eml extension by default. This is a known bug and the bug number is 96134.
    2. Save Message with Same File name
      1. Selecting a received message from the 3 pane or stand alone window and saving with a same file name should append to the end of the existing message. ( As per spec this is 4.x behavior)
      2. File|Save As>|Template
        • verify the message is saved in the designated Template folder (setup in the Accounts Setup panel) and is still located in the folder from which you were viewing it.
    3. Multiple messages (continuous selection) (TBD check spec)-Known bug # 58140
      1. File|Save As>|File (.txt)
        • verify messages are all saved in a single .txt file by selecting the File type "Plain Text", the "Save Message As" dialog accepts the location and the file name you entered, dialog closes after the save, and messages are still located in the folder from which you viewed them from
        • verify the saved .txt message is saved in the correct location and it can be opened a text editor, Navigator 4.x and 5.0 browser and one other browser of choice
        • verify if saved with the same file name as a previous save, the old messages are replaced with the new messages
      2. File|Save As>|File (.html)
        • verify you can save a message as a .html file by selecting the File type "HTML files", the "Save Message As" dialog accepts the location and the file name you entered, dialog closes after the save, and message is still located in the folder from which you viewed it from
        • verify the saved .html message is saved in the correct location and it can be opened in Navigator 4.x and 5.0 and one other browser of choice. The message should be displayed as a mail message without header
        • verify if saved with the same file name as a previous save, the old messages are replaced with the new messages (unlike 4..x the new messages were appended to the file and the old messages are still there)
      3. File|Save As>|Template
        • verify all the messages are saved in the designated Template folder (setup in the Accounts Setup panel) and all are still located in the folder from which you were viewing it.
    4. Multiple messages (non continuous selection) (TBD check spec)
      1. File|Save As>|File (.txt)
        • Same results as listed for continuous selection
      2. File|Save As>|File (.html)
        • Same results as listed for continuous selection
      3. File|Save As>|Template
        • verify the message is saved in the designated Template folder (setup in the Accounts Setup panel) and is still located in the folder from which you were viewing it.
  4. Save As> launched for messages from various folders within various Accounts (Identities). Repeat tests listed above for Single and continuous multiple messages for:
    1. POP account folders listed below and verify the results listed above
      1. Inbox
      2. Sent
      3. Draft
      4. Template
      5. Unsent Messages
      6. User defined
    2. IMAP account folders listed below and verify the results listed above
      1. Inbox
      2. Sent
      3. Draft
      4. Template
      5. User defined
    3. Other (TBD)
    4. News Server
      1. Selected Newsgroup

Expanded Scenarios - Saving Message - File or Template

  1. Save As>File, a message when the number of messages in the mail folder is:
    1. No messages - verify Save As/File is disabled and does not crash
    2. 1 message in the folder - verify the message is saved in the location selected and is still located in the original folder
    3. 51-1000 messages in the folder - verify the message is saved in the location selected and is still located in the original folder, all other messages left untouched.
  2. Save As>Template a message when the number of messages in the mail folder is:
    1. No messages - verify Save As>Template is disabled
    2. 1 message in the folder - verify the message is saved in the location selected and is still located in the original folder
    3. 51-1000 messages in the folder - verify the message is saved in the location selected and is still located in the original folder
  3. Save As>File when (2) windows opened
    1. Open a message in a separate Mail Window and have a different message selected in Thread pane (which will display in Message Pane).
      1. Select message in Thread pane, select Save As>File and save it. Verify the selected message in Thread pane is the message that was saved and is the only one saved.
      2. From the stand alone Message Window, select Save As>File and save it. Verify the message in the stand alone message window is the one that is saved and is the only one saved.
      3. Select message in Thread pane select Save As>Template and save it. Verify the selected message in Thread pane is the message that was saved as a template and is the only one saved.
      4. From the stand alone Message Window, select Save As>Template and save it. Verify the message in the stand alone message window is the one that is saved as a template and is the only one saved.
  4. Interrupting the Save As>File of multiple messages (TBD) when the number of messages in the mail folder is:
    1. 51-1000 messages in the folder
      1. Select at least 200 msgs., File/Save As>/File, give a file name, location, OK, then press Esc button to cancel during process, verify the process stopped and did not crash. If your systems is very fast, you may not be able to cancel before it finishes, just make sure it doesn't crash. Check the file to see that it is readable and only some of the messages are listed (only if you successfully interrupted the process).
  5. Interrupting the Save As>Template of multiple messages (TBD) when the number of messages in the mail folder is:
    1. 51-1000 messages in the folder
      1. Select at least 200 msgs., File/Save As>/Template, then press Esc button to cancel during process, verify the process stopped and did not crash. Verify only some of the messages were added, not all.
  6. Visual
    1. Verify there is feedback for these actions on the status/progress bar

Stress Scenarios - Saving Message - File or Template

  1. Execute a Save As>File (using each of the formats listed above) on a mail/news message with the following:
    1. low disk space where file is to be located - verify an OS warning, and no crash.
    2. give an invalid file name (could be too long, using illegal characters for OS, name that is already used) - verify OS error msg pops up, and no crash.
  2. Verify you are able to Save As>File (using each of the formats listed above) a mail/news message with the following:
    1. large message
    2. message with attachment
    3. HTML message
    4. Plain Text message
  3. Verify you are able to Save As>Template a mail/news message with the following: verifying the message is moved to the Template folder, the message can be opened w/attachments and message was not truncated:
    1. large message
    2. message with attachments
    3. HTML message
    4. Plain Text message