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: Attachment

Feature Test Spec: Mail and News Component

Mail and News Component: Attachment

Written by Peter Mock
Revised and updated by Fenella Gor and by Sheela Ravindran

References

UI Specification: Main Mail Spec, Message Compose, Message Compose Menu Mail Menu, Context Menu Overview

Test Case Management Usage: n/a

Description

The focus of attachment is to ensure that a file/web page can be sent in a mail message and saved/open once the message has been received. These test cases is intended to be performed in HTML Compose and apply to both Mail and News including POP and IMAP. Note. Under the section of "Composing Mail Messages with Attachment", most of these test cases can be run against the plain text mail editor except for the test requiring you to drag and files to native file (gif/jpeg/html etc) into the message body.

Visual

Viewing the Message Compose Editor.

Instructions: Start a new mail message and add attachments as needed to verify the following behavior.

  1. Verify under the File menu contains the a menu option called "attach"
    1. Verify the "attach" sub menu option include "Attach file" and "Attach web page",.
  2. Verify in the addressing area, the attachment area is located to the right of the Address Panel.
    1. Attachments are listed in the attachment area.
    2. An attachment is listed with a file name.
    3. If there are more attachments than what can be possibly displayed in the attachment area, a vertical scroll bar appears.
    4. If there are more attachments than what can be possibly displayed in the attachment area, a horizontal scroll bar will not be displayed.
    5. If an attachment name is longer than what can be displayed in the attachment area, then the user can mouse over the name and see the tool tip which will display the entire attachment name.
    6. Verify when you mouse click in the attachment area, brings up the attachment dialog.
  3. Verify the properties of the file attachment dialog.
    1. Verify the name of the dialog is called "Enter file to attach"
    2. Verify that the dialog contains the following tools:
      1. Navigate to a specific folder/directory
      2. Access the network
      3. Sort list (win32 only?) by name or type
      4. Vertical Scroll bar (if list extend past visible window)
      5. Cancel button
      6. Open button
      7. Close button
      8. Help button
  4. Verify the properties of the web page attachment dialog
    1. Verify the name of the dialog is called "Please Specify a Location to Attach".
    2. Verify the text label "Web Page (URL): " is above the field.
    3. Verify the dialog contains the a field to enter a URL.
    4. Verify the dialog contains a OK button.
    5. Verify the dialog contains a Cancel button.
    6. Verify that you can close the window using widget X.
  5. Verify in the Mail/NewsAccount Settings dialog you have options to include the signature in mail
    1. Verify that signature is at the bottom of the message upon Send
  6. Verify the open/save attachment dialog properties. Click on the paper clip icon and select a file attachment to save.
    1. Verify the dialog is entitled "Open or Save Attachment".
    2. Verify the warning text is present and accurate.
    3. Verify you have a radio option to open or save the attachment.
    4. Verify you have a cancel button.
    5. Verify you have a ok button.
  7. Verify the save as attachment dialog properties. From the message envelope, save a single attachment.
    1. Verify the dialog is entitled "Save Attachment".
    2. Verify the file name is automatically entered.
    3. Verify the file name is highlight to allow you to change it easily.
    4. Verify the dialog allows you to choose the destination directory.
  8. Verify the save all attachment dialog properties. On a message with more than one attachment, click on the paper clip icon and select to save all the attachments.
    1. Verify the dialog is entitled "Save Attachment".
    2. Verify you can check and unchecked the selections.
    3. Verify the dialog allows you to choose the destination directory.
    4. Verify you have a cancel button.
    5. Verify you have a save button.

Viewing Messages with Attachments

Instructions: For each test case, sent yourself various mail message in your inbox that contain one/more file attachments.

  1. Open new mail message that contains a mail attachment
    1. Verify in the mail message, the number of attachments is displayed to the left of the attachment paper clip icon located on the message envelope area.
    2. Verify if you click on the attachment paper clip icon,
      1. it lists all the attachment names.
      2. if there are more than one attachments, it displays the option to save all attachments.
    3. Verify that an attached native image such as a jpeg or gif file is displayed in the message body and listed as a attachment.
    4. Verify that an attached signature file is displayed in the message body and the attachment area. (The signature file was manually attached and the user preference to include a signature file was unchecked.)
  2. View the message and select the File menu option "File Open Attachment", verify it list the attachments in the current message.
  3. Verify the context menu option appears to open/save the attachment when you:
    1. bring up the content menu in the message area.
  4. Special case, if you have an attachment link in the message area, verify the save attachment dialog appears when you click on the link.

Saving/Opening File Attachments

Instructions: Send as many mail message containing one or more file attachments as needed to run the following test cases.

  1. Open a mail message that contains a single file attachment. Save a single file attachment to your hard disk using the
    1. File menu save/open attachment option.
    2. Using the context menu option. (Select the inline image and choose save image/link).
  2. With the attachments saved in the previous test case, verify the the following:
    1. The attachment was saved with the correct name.
    2. Using the original application that created the attachment, open the attachment.
  3. Open a mail message that contains a single file attachment. Save a single file attachment to your hard disk using the same methods as before except to change the different folder/directory location.
    1. File menu save/open attachment option.
    2. Paper clip icon off the message envelope.
    3. Using the context menu option. (Select the inline image and choose save image/link.)
  4. With the attachments saved in the previous test case, verify the the following:
    1. The attachment was saved with the correct name.
    2. Using the original application that created the attachment, open the attachment.
  5. Open a mail message that contains attachment link pointing to a native file (gif/jpeg) in its message body.
    1. Click on the attachment link and verify the attachment opens in a browser and displays inline.
    2. Right Mouse on the attachment link in the message body and verify the attachment opens in a browser. The image is displays inline.
    3. Drag the link to your hard drive. Verify the attachment is saved.
  6. Open a mail message that contain at least 2 file attachments. Save all the file attachments using the
    1. File menu save/open attachment option.
    2. Using the context menu option.
  7. With the attachments saved in the previous test case, verify the the following:
    1. All the attachments were saved with the correct name.
    2. Using the original application that created the attachment, open each attachment.
  8. Verify the following Context Menu options when clicking on a image that is displayed inline (See issues)
    1. Save Image as/Save Link as
    2. Save Message as Plain Text
    3. Save Message as HTML
  9. Send a mail message with an attached signature file containing
    1. Verify when you can click on the HTTP URL to open the location in a browser window.
    2. Verify when you can click on the Mailto URL to start a new message compose window.
    3. Verify when you can click on the Mailto URL the correct HTML or Plain Text editor appear according to the formatting preference.
  10. Forward a mail message as an attachment to yourself.
    1. Verify the forwarded message appears in the list of attachment.
    2. Verify the forwarded message appears inline.
  11. Send a mail message with an attached mailbox file
    1. Verify you can save the mailbox file.
    2. Verify you can copy the save mailbox file to you local mail folder then launch Communicator and view the messages in the mail folder.
    3. Verify you can view the mailbox file in a browser window.
  12. Verify you can open an attachment that does not have a file extension.
    1. Verify the Word document with no .doc extension is received and can be opened.
    2. Verify the Excel document with no extension is received and can be opened.
    3. Verify the Powerpoint document with no extension is received and can be opened.
  13. Decoding file attachment. Verify that you can decode the following file attachment (requires a 3rd party email program to specify some of these encoding upon sending)
    1. MIME or Base 64
    2. Binhex
    3. Apple Double
    4. Apple Single
    5. Printed quotable
  14. Mime Part on Demand (MPOD)
    1. See MPOD Test Spec

Composing Mail Messages with Attachments

Instruction: Set the view option to display attachments inline

  1. For each test case, start a html mail message and use a native file (gif/jpeg) to perform these operations:
    1. Use the File menu option "attach" to attach the file. Verify the native file is NOT displayed inline or as a link, but the attachment name is listed in the attachment area.
    2. Use the "Attach" button from the toolbar. Verify the native file is NOT displayed inline or as a link, but the attachment name is listed in the attachment area.
    3. Click in the attachment area to bring up the attachment dialog then attach the file. Verify the native file is NOT displayed inline or as a link, but the attachment name is listed in the attachment area.
    4. Use the Insert menu option "Insert Image" to attach the file. Verify the native file is displayed inline, but the attachment name is NOT listed in the attachment area.
  2. For each test case, start a html mail message and use a HTML (located locally or on the network) file to perform these operations:
    1. Drag a HTML file into the attachment area. Verify the native file is not displayed inline or as a link, but the attachment name is listed in the attachment area.
    2. Use the File menu option "attach" to attach the HTML file. Verify the native file is NOT displayed inline or as a link, but the attachment name is listed in the attachment area.
    3. Use the "Attach" button from the toolbar to attach the HTML. Verify the HTML file is NOT displayed inline or as a link, but the attachment name is listed in the attachment area.
    4. Click in the attachment area to bring up the attachment dialog then attach the file. Verify the native file is NOT displayed inline or as a link, but the attachment name is listed in the attachment area.
    5. Drag the HTML file into the message body. Verify the HTML file is displayed inline, but the attachment name is NOT listed in the attachment area.
    6. Use a special key combination (TBD) while drag the HTML file into the message body. Verify the HTML file is NOT displayed inline and the attachment name is NOT listed in the attachment area, but is displayed as a link.
    7. Use the Insert menu option "Insert Link" to insert the HTML file. Verify the HTML file is NOT displayed inline and the attachment name is NOT listed in the attachment area, but is displayed as a link.
    8. Use the formatting toolbar (below the address pane) to insert the HTML file. Verify the HTML file is NOT displayed inline and the attachment name is NOT listed in the attachment area, but is displayed as a link.
  3. For each test case, start a html mail message and use bookmark file to perform these operations:
    1. Drag a bookmark file into the attachment area. Verify it is NOT displayed inline and the attachment name is NOT listed in the attachment area, but is displayed as a link.
    2. Drag a bookmark file into the message body. Verify you can not drag the file. The cursor changes to a circle with a line through it.
  4. For each test case, start a html mail message and use page proxy icon file to perform these operations:
    1. Drag a page proxy icon into the attachment area. Verify it is NOT displayed inline and the attachment name is NOT listed in the attachment area, but is displayed as a link.
    2. Drag a page proxy icon file into the message body. Verify you can not drag the file. The cursor changes to a circle with a line through it.
  5. For each test case, start a html mail message and use a non-native file (doc/xls) to perform these operations:
    1. Drag a non-native file into the attachment area. Verify the native file is NOT displayed inline or as a link, but the attachment name is listed in the attachment area.
    2. Use the File menu option "attach" to attach a non-native file. Verify the native file is NOT displayed inline or as a link, but the attachment name is listed in the attachment area.
    3. Use the "Attach" button from the toolbar to attach a non-native file. Verify the native file is NOT displayed inline or as a link, but the attachment name is listed in the attachment area.
    4. Click in the attachment area to bring up the attachment dialog then attach the file. Verify the native file is NOT displayed inline or as a link, but the attachment name is listed in the attachment area.
    5. Drag a non-native file into the message body. Verify you can not drag the file. The cursor changes to a circle with a line through it.
  6. Start a html mail message then drag and drop an personal address book file from your hard drive into the attachment area. Verify the address book show up in the attachment area.
  7. Open the Messenger window and for each test case, start a html mail message.
    1. Drag the message icon into the attachment pane. Verify the message is listed in the attachment area.
    2. Drag the thread icon into the attachment pane. Verify the message is listed in the attachment area.
  8. Methods of deleting a attachment file
    1. Verify you can delete attachments through the attachment area.
    2. Verify you can delete only one attachment at a time through the attachment area.
    3. Verify you can delete attachments through the file menu option "attach->delete attachment".
    4. Verify you can delete only one attachment at a time through the file menu option.
    5. Verify you can delete a selected attachment using the delete key.
    6. Verify you can delete a selected attachment using the del key on the numeric keypad.
    7. Verify you can delete a selected attachment using the Edit | Delete menu option.
  9. Attach a signature file to a mail message using the File menu, attach button, or drag and drop into the attachment area.
    1. Verify the signature file does NOT displays inline.
    2. Verify the signature file is listed in the attachment area.
  10. Set the user preference to include a signature file for every mail message.
    1. Verify the signature file does displays inline.
    2. Verify the signature file is NOT listed in the attachment area.
  11. Drag a URL link into the attachment area.
    1. If the URL is to a web page link, then verify that the web page is attached.
    2. If the URL is to a file local file, then the URL is attached. (TBD).
  12. Drag one directory/folder into the attachment area.
    1. Verify the contents of the directory/folder are listed in the attachment area.
    2. Verify all the files listed are included with the message when sent.
  13. For each test case, start a new message and use the
    1. File | Attach menu option to
      1. Verify you can attach 1 file.
      2. Verify you can attach a group of files.
      3. Verify if there are more attachment that can be displayed in the attachment pane that a vertical scroll bar appears and you can scroll up and down through the list.
    2. Attach button on the Compose Toolbar
      1. Verify you can attach 1 file.
      2. Verify you can attach a group of files.
      3. Verify if there are more attachment that can be displayed in the attachment pane that a vertical scroll bar appears and you can scroll up and down through the list.
    3. Mouse click in the attachment area
      1. Verify you can attach 1 file.
      2. Verify you can attach a group of files.
      3. Verify if there are more attachment that can be displayed in the attachment pane that a vertical scroll bar appears and you can scroll up and down through the list.
    4. Drag & Drop from the desktop-CANNOT IN 6.0
      1. Verify you can attach 1 file.
      2. Verify you can attach a group of files.
      3. Verify if there are more attachment that can be displayed in the attachment pane that a vertical scroll bar appears and you can scroll up and down through the list.
    5. Drag & Drop from file manager (Window Explorer, Linux File Manager, Mac (TBD))- CANNOT IN 6.0
      1. Verify you can attach 1 file.
      2. Verify you can attach a group of files.
      3. Verify if there are more attachment that can be displayed in the attachment pane that a vertical scroll bar appears and you can scroll up and down through the list.
  14. For each type of file, start a new message and attach the file type and send the message. Verify that the image is received and that the attachment can be saved.-
    1. Inline file supported by program
      1. Forward message as attachment
      2. Attaching saved mail message file
      3. Gif
        • non animated gif
        • animated gif
      4. Jpeg
      5. PNG
      6. HTML
      7. Text files (such as notepad files)
    2. Windows native files from applications such as PaintBrush, Notepad, Write, Wordpad, Media Player, Dr Watson Log file
      1. Gif (Windows 98 Paintbrush)
      2. JPEG (Windows 98 Paintbrush)
      3. BMP
      4. Tiff
      5. Text Document
      6. Text Document, MS-DOS format
      7. Word for Windows 6.0 Documents
      8. Rich Text Format (RTF)
      9. Write Documents (Windows 95 & NT 4.0)
      10. Unicode Text Document (Windows 98)
      11. Wav sound file
      12. Postscript file (print to file)
      13. Mpeg movie
      14. Video Clip
      15. Movie Clip (Windows 98)
      16. Dr Watson log file (.wlg)
    3. Unix native files from applications such as Image Viewer, Text Editor, Icon Editor, SnapShot
      1. Gif
      2. JFIF (JPEG)
      3. Postscript file
      4. Tiff
      5. Sun Raster
      6. Tar
      7. Gzip
    4. Mac native files from applications such as Teach Text
      1. Teach text file
      2. Gif with preview
      3. JPEG with preview
      4. TIFF
      5. Quicktime
      6. PICT image
      7. Apple Double
      8. Apple Single
      9. Stuff IT .sit files
    5. Microsoft Office 97 (PC) file types
      1. Word document
      2. Excel document
      3. PowerPoint document
      4. Office binder document
      5. Imaging for Windows (bundled with MS Office)
        • Tiff
        • Fax Document (.awd)
        • BMP
    6. Microsoft Office 98 (Mac) file types
      1. Word document
      2. Excel document
      3. PowerPoint document
      4. Office binder document
    7. Microsoft Office 2000 file types
      1. Word document
      2. Excel document
      3. PowerPoint document
      4. Office binder document
    8. Adobe Acrobat PDF format
    9. Web Page
      1. Web page from a secure site
      2. Web page from unsecured site
      3. Simple content
        • No frames
        • Text
        • Graphics
        • Blinking text
        • Tables
        • Forms
      4. Complex content
        • Frames
        • Java Applet
        • Javascript
      5. Sample Web pages to use
        • marketwatch.com
        • www.nettaxi.com
        • www.news.com
        • foxsports.com
        • support.microsoft.com
        • cbs.marketwatch.com
        • cnnsi.com
        • www.quicken.com
        • www.buy.com
        • download.mcafee.com
        • www.mayohealth.org
        • women.com
        • jcpenny.com
        • ivillage.com
        • homearts.com
        • mailbits.com
        • www.qvc.com
        • valupage.com
        • 123greetings.com
        • onhealth.com
        • www.thecase.com
        • www.bn.com
        • netcenter.com
        • www.netscape.com
        • help.netscape.com
      6. Web Pages from International sites
        • Should include sampling of tier 1 languages such as
          1. Japanese
          2. French
          3. German
          4. Korean
          5. Chinese

Compatibility Tests

These test cases are designed to ensure we work between different platform, different Communicator versions, and other email programs.

  1. Cross Platform tests using Communicator 5.0. Take a non-native file (MS Office document) and attach it to a mail message. Send the message and view the message once it reached its final destination.
    1. Send the mail message from Windows to Mac. Verify the attachment can be opened.
    2. Send the mail message from Mac to Windows. Verify the attachment can be opened.
    3. Send the mail message from Windows to Mac to Linux to Windows. Verify the attachment can be opened.
    4. Send the mail message from Mac to Windows to Linux to Mac. Verify the attachment can be opened.
  2. Use the messages you sent above and verified the attachment can be save to your hard drive after it has been to its final destination.
    1. View the message sent from Windows to Mac. Verify the attachment is saved.
    2. View the mail message from Mac to Windows. Verify the attachment is saved.
    3. View the mail message from Windows to Mac to Linux to Windows. Verify the attachment is saved.
    4. View the mail message from Mac to Windows to Linux to Mac. Verify the attachment is saved.
  3. Cross Platform tests using Communicator 5.0. Take a native file (gif/jpeg/html) and attach it to a mail message. Send the message and view the message once it reached its final destination.
    1. Send the mail message from Windows to Mac. Verified the attachment is displayed inline.
    2. Send the mail message from Mac to Windows. Verified the attachment is displayed inline.
    3. Send the mail message from Windows to Mac to Linux to Windows. Verified the attachment is displayed inline.
    4. Send the mail message from Mac to Windows to Linux to Mac. Verified the attachment is displayed inline.
    5. Send the mail message from Windows to Linux. Verified the attachment is displayed inline.
    6. Send the mail message from Linux to Windows. Verified the attachment is displayed inline.
    7. Send the mail message from Linux to Mac. Verified the attachment is displayed inline.
    8. Send the mail message from Mac to Linux. Verified the attachment is displayed inline.
    9. Send the mail message from Linux to Mac to Windows to Linux. Verified the attachment is displayed inline.
  4. Cross Platform tests using Communicator 4.x to send a file attachment and viewed under Communicator 5.0. Take a non-native file (MS Office document) and attach it to a mail message. Send the message and view the message once it reached its final destination.
    1. Send the mail message from Windows to Mac. Verify the attachment can be opened.
    2. Send the mail message from Mac to Windows. Verify the attachment can be opened.
    3. Send the mail message from Windows to Mac to Linux to Windows. Verify the attachment can be opened.
    4. Send the mail message from Mac to Windows to Linux to Mac. Verify the attachment can be opened.
  5. Use the messages you sent above and verified the attachment can be save to your hard drive after it has been to its final destination.
    1. View the message sent from Windows to Mac. Verify the attachment is saved.
    2. View the mail message from Mac to Windows. Verify the attachment is saved.
    3. View the mail message from Windows to Mac to Linux to Windows. Verify the attachment is saved.
    4. View the mail message from Mac to Windows to Linux to Mac. Verify the attachment is saved..
  6. Compatibility receiving attachment from other email programs. Using the following third party email programs, send a mail message containing a file attachment and receive it using Communicator 5.0. (Note. Tests may be limited due to time constraints)
    1. Sent from Eudora, verify you can save/open the attachment using Communicator.
    2. Sent from Microsoft Express, verify you can save/open the attachment using Communicator.
    3. Sent from Microsoft Outlook, verify you can save/open the attachment using Communicator.
    4. Sent from the current email program that is included with Windows 2000. Verify you can save/open the attachment using Communicator.
    5. Sent from the current email program that is included with Office 2000. Verify you can save/open the attachment using Communicator.
  7. Compatibility sending a file attachment to other email programs. Using the Communicator 5.0, send a mail message containing a file attachment and receive it using the following third party email program. (Note. Tests may be limited due to time constraints)
    1. Received in Eudora, verify you can save/open the attachment.
    2. Received in Microsoft Express, verify you can save/open the attachment.
    3. Received in Microsoft Outlook, verify you can save/open the attachment.
    4. Received in the current email program that is included with Windows 2000, verify you can save/open the attachment.
    5. Received in the current email program that is included with Office 2000, verify you can save/open the attachment.

Stress Tests

Additional test are to be determined later and coverage of each area depends on available time and resources.

  1. Length of attachment name. What happens when the program tries to save/open a file whose name fills its entire buffer.
  2. Number of files attachments in a given message. Dragging your hard drive icon or large directory to the attachment area.
  3. File size limit. Attaching and sending very large attachments (10 MB or larger).
  4. Limit system resources. No swap space available on hard drive or available application memory.
  5. Reached maximum disk space allocation for your unix account or hard drive is full. Saving file attachments or downloading mail messages to hard drive.
  6. Corner cases. Interrupting saving large attachments.