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 GoesReferences
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
- Windows from which a Mail/News message can be Saved as a File or
Template
- 3 Pane UI
- Message Window
- How to access "Save As>" for selected News/Mail messages
- Menu item while in 3-Pane window or stand alone Message window
- File|Save As>|File (.txt format)
- File|Save As>|File (.html format)
- File|Save As>|Template
- Context menu (right mouse click on the message)
- 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.
- Save Message..
- Menu item while in 3-Pane window or stand alone Message window
- Number of messages that can be Saved at one time
-
Single message
- 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)
- 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)
- File|Save As>|File (.txt)
-
Save Message with Same File name
- 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)
- 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.
- Multiple messages (continuous selection) (TBD check
spec)-Known bug # 58140
- 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
- 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)
- 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.
- File|Save As>|File (.txt)
- Multiple messages (non continuous
selection) (TBD check spec)
- File|Save As>|File (.txt)
- Same results as listed for continuous selection
- File|Save As>|File (.html)
- Same results as listed for continuous selection
- 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.
- File|Save As>|File (.txt)
-
Single message
- Save As> launched for messages from various folders within
various Accounts (Identities). Repeat tests listed above for Single
and continuous multiple messages for:
- POP account folders listed below and verify the results listed
above
- Inbox
- Sent
- Draft
- Template
- Unsent Messages
- User defined
- IMAP account folders listed below and verify the results listed
above
- Inbox
- Sent
- Draft
- Template
- User defined
- Other (TBD)
- News Server
- Selected Newsgroup
- POP account folders listed below and verify the results listed
above
Expanded Scenarios - Saving Message - File or Template
- Save As>File, a message when the number of messages in the mail
folder is:
- No messages - verify Save As/File is disabled and does not crash
- 1 message in the folder - verify the message is saved in the location selected and is still located in the original folder
- 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.
- Save As>Template a message when the number of messages in the
mail folder is:
- No messages - verify Save As>Template is disabled
- 1 message in the folder - verify the message is saved in the location selected and is still located in the original folder
- 51-1000 messages in the folder - verify the message is saved in the location selected and is still located in the original folder
- Save As>File when (2) windows opened
- Open a message in a separate Mail Window and have a different
message selected in Thread pane (which will display in Message
Pane).
- 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.
- 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.
- 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.
- 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.
- Open a message in a separate Mail Window and have a different
message selected in Thread pane (which will display in Message
Pane).
- Interrupting the Save As>File of multiple
messages (TBD) when the number of messages in the mail
folder is:
- 51-1000 messages in the folder
- 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).
- 51-1000 messages in the folder
- Interrupting the Save As>Template of
multiple messages (TBD) when the number of messages in
the mail folder is:
- 51-1000 messages in the folder
- 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.
- 51-1000 messages in the folder
- Visual
- Verify there is feedback for these actions on the status/progress bar
Stress Scenarios - Saving Message - File or Template
- Execute a Save As>File (using each of the formats listed above)
on a mail/news message with the following:
- low disk space where file is to be located - verify an OS warning, and no crash.
- 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.
- Verify you are able to Save As>File (using each of the formats
listed above) a mail/news message with the following:
- large message
- message with attachment
- HTML message
- Plain Text message
- 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:
- large message
- message with attachments
- HTML message
- Plain Text message