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

Feature Test Spec: Mail and News Component

Mail and News Component: Drafts

Written by Peter Mock
Updated by Esther Goes

References

UI Specification: Mail Master Spec
Mail Compose Master spec

Descriptions

The Draft feature is similar to previous version of Communicator 4.x. They are used to temporary store messages that are in progress and can be finished at a later time. These tests needs to be repeated on a POP server, IMAP server, and NNTP (news) server.

Saving a Draft

Preference

  1. Verify when you create a new profile, you automatically have a draft folder created
    1. Verify if your default mail Server is IMAP, the draft folder is created on the IMAP server
    2. Verify if your default mail Server is POP, the draft folder is create on the POP Server
    3. Verify if you have only one news server, the draft folder is created on the Local server
    4. Verify what happens if you have multiple accounts:
      1. 2 POP
      2. 2 IMAP
      3. 2 POP and 1 IMAP
      4. 2 IMAP and 1 POP
      5. 2 IMAP and 2 IMAP
  2. In the Account Setting dialog, Verify the dialog properties.
    1. Verify the dialog is entitled "Account Settings"
    2. Verify you can view the "Copies and Folders" preferences
    3. Verify the drafts is listed under the sections "Special Folders"
    4. Verify the drafts can be set via drop-down menus.
    5. Verify you have a Cancel button
    6. Verify you have a OK button
  3. Verify the draft fly out menus functionality.
    1. In the drop down menu, set the location draft folder location to IMAP. Verify the changes takes effect (may require restart)
    2. In the drop down menu, change the location draft folder location POP. Verify the changes takes effect (may require restart)
    3. In the drop down menu, change the location draft folder location from IMAP to Local. Verify the changes takes effect (may require restart)
    4. In the drop down menu, change the location draft folder location from Local to IMAP. Verify the changes takes effect (may require restart)
    5. In the drop down menu, change the location draft folder location from POP to a different POP folder. Verify the changes takes effect (may require restart)
    6. In the drop down menu, change the location draft folder location from IMAP to a different IMAP folder. Verify the changes takes effect (may require restart)
    7. Verify the cancel button exit the dialog and does not save any changes that you have made
    8. Verify the OK button exits the dialog and save any changes that you have made

Message Compose Editor

  1. Verify in the Compose Window, the File menu contain the following options:
    1. Save as File
    2. Save as Draft
    3. Save as Template
  2. Verify in the Compose Window, the Save button on the toolbar contain the following options:
    1. Save as File
    2. Save as Draft
    3. Save as Template
  3. Verify in the Messenger when you have a message selected, the File menu contains the following options:
    1. Save as File
    2. Save as Template
  4. Verify you can save a message with various information as a draft (testing only one attribute at a time)
    1. Verify you can save a blank message with no information
    2. Verify in a new message, you can save changes to the Recipient/Option/Attachment
      1. Verify you can save each of the item typed into the Address pane
        • Recipient Type -> To:
        • Recipient Type -> Cc:
        • Recipient Type -> Bcc:
        • Recipient Type -> Group:
        • Recipient Type -> Reply-To:
        • Recipient Type -> Followup-To:
      2. Option Menu
        • Format drop down menu
          1. Ask Me (default)
          2. Plain Text only
          3. HTML Text only
          4. Plain Text and HTML
      3. Attachment Menu
        • Verify you can save different attachments
          1. File (any type)
          2. Web Page
          3. Personal Card (Vcard)
      4. Subject field
        • Verify the message title is saved
        • Verify the Priority setting is preserved
          1. Lowest
          2. Low
          3. Normal
          4. High
          5. Highest
    3. Verify you can save changes to the Plain Text message body
      1. Single character
      2. Single paragraph
      3. Several paragraphs
      4. Signature only
    4. Verify you can save changes to the HTML compose message body add select (4) of the attributes listed below and then save as Draft, open the message and verifiy the attributes are correct. Select Edit Draft button and add (4) more save view message to verify the previous and added attributes are correct. Send draft and view, verify all the attributes a correct. Select (8) different attributes for each platform (Win, Mac & Linux) to get better coverage of the attributes.
      1. Character Attributes
        • Variable Width
        • Fixed Width
        • Sample of fonts installed from operating system (there can be many installed)
        • Style
          1. Bold
          2. Italic
          3. Underline
          4. Strikethrough
          5. Superscript
          6. Subscript
          7. Blinking
          8. Non breaking
        • Color
          1. Use selected color
          2. Don't change color
      2. Paragraph Attributes
        • Paragraph Alignment
          1. Left
          2. Center
          3. Right
        • Paragraph Style
          1. Normal
          2. Heading 1
          3. Heading 2
          4. Heading 3
          5. Heading 4
          6. Heading 5
          7. Heading 6
          8. Address
          9. Formatted
          10. List Item
          11. Description Title
          12. Description Text
        • Additional Paragraph Style
          1. Default
          2. List
          3. Black Quote
        • Paragraph Indent
          1. Increase Indent
          2. Decrease Indent
        • List Style
          1. Bullet (Unnumbered) List
          2. Numbered List
          3. Directory List
          4. Menu List
          5. Description List
        • Number Style
          1. Automatic
          2. 1, 2, 3
          3. I, II, III
          4. i, ii, iii
          5. A, B, C
          6. a, b, c
      3. Horizontal Line
      4. Link Attributes
        1. Verify you can enter in a Link name
        2. Link to current page
        3. Link to selected file
      5. Image Attributes
        1. Verify you can enter in a URL to specify a image
        2. Verify you can choose a local image from your hard drive
        3. Leave image at the original location
        4. Use as background
        5. Text Alignment
          • Starting at the top (below line)
          • Starting at the middle (center of line)
          • Starting at the middle (top of line)
          • Starting at the bottom (below line)
          • Starting at the bottom (all above line - including decenders)
        6. Text Wrapping around the image
          • Wrapping around the right of image
          • Wrapping around the left of image
        7. Dimensions
          • Height in pixels
          • Height in % of window
          • Width in pixels
          • Width in % of window
          • Constraint
          • Original Size
        8. Space around image (in pixels)
          • Left and right
          • Top and bottom
          • Solid border
        9. Alternate Image Properties
          • Alternate Text (The text will appear while image is loading, when the "Show Images" option is turned off, and in text only browser)
          • Low resolution image (This image will be displayed before the main image. Use on image with a smaller file size (usually fewer colors) than the main image so it loads faster)
      6. Color and Background Attributes
        1. Page Color - use the viewer browser colors (No colors saved in page)
        2. Page Color - use custom colors (Saves colors in page)
          • Selecting color for Normal Text
          • Selecting color for Link Text
          • Selecting color for Active Link Text
          • Selecting color for Followed Link Text
          • Selecting color for Background (note, background image overrides this color)
          • Color Schemes
            1. Netscape Default Colors
            2. Black on White
            3. Black on Off White
            4. Black on Lt. Yellow
            5. Black on Yellow
            6. Black on Lt. Blue
            7. Black on Medium Blue
            8. Blue on Orange
            9. White on Black
            10. White on Green
            11. White on Blue
            12. White on Violet
        3. Background Image
          • Verify you can enter in a URL to specify a image
          • Verify you can choose a local image from your hard drive
          • Leave image at the original location
      7. Table Properties Attributes
        1. Number of rows and columns
        2. Table Alignment
          • Left
          • Center
          • Right
        3. Include caption above table
        4. Include caption below table
        5. Border line width (in pixels)
        6. Cell spacing (pixels between cells)
        7. Cell padding (pixels space within cells)
        8. Table Width in pixels
        9. Table Width in % of window
        10. Table min height in pixels
        11. Table min height in % of window
        12. Equal column width
        13. Table background
          • Verify you can enter in a URL to specify a image
          • Verify you can choose a local image from your hard drive
          • Leave image at the original location
        14. Table Row Attributes
          • Horizontal Alignment
            1. Default
            2. Left
            3. Center
            4. Right
          • Vertical Alignment
            1. Default
            2. Top
            3. Center
            4. Bottom
            5. Baselines
          • Background
            1. Verify changing the background color
            2. Verify you can enter in a URL to specify a image
            3. Verify you can choose a local image from your hard drive
            4. Leave image at the original location
        15. Table Cell Attributes
          • Horizontal Alignment
            1. Default
            2. Left
            3. Center
            4. Right
          • Vertical Alignment
            1. Default
            2. Top
            3. Center
            4. Bottom
            5. Baselines
          • Cell Span
            1. Rows
            2. Columns
          • Text Style
            1. Header style
            2. Non breaking
          • Cell Height in pixels
          • Cell Height in % of window
          • Cell Width in pixels
          • Cell Width in % of window
          • Background
            1. Verify changing the background color
            2. Verify you can enter in a URL to specify a image
            3. Verify you can choose a local image from your hard drive
            4. Leave image at the original location
    5. Veriy you can save as draft a reply message, you can save changes to the Recipients/Option/Attachment. Randomly select from the Recipient list below.
      • Recipient Type -> To:
      • Recipient Type -> Cc:
      • Recipient Type -> Bcc:
      • Recipient Type -> Group:
      • Recipient Type -> Reply-To:
      • Recipient Type -> Followup-To:
    6. Verify you can save as draft a forward message, you can save changes to the Recipients/Option/Attachment. Randomly select from the Recipient list below.
      • Recipient Type -> To:
      • Recipient Type -> Cc:
      • Recipient Type -> Bcc:
      • Recipient Type -> Group:
      • Recipient Type -> Reply-To:
      • Recipient Type -> Followup-To:

Viewing a Draft

  1. Verify you can select a draft to view it from draft folder
    1. From the Thread pane, select a message in the draft folder to load it Message pane. (Note, you can not open the message into a separate Message Window)
  2. Verify you can view a draft with various information (testing only one attribute at a time)
    1. Verify you can view a blank message with no information
    2. For each draft you saved in the previous section Saving a Draft - verify you can view the changes.
  3. Additional tests. Expected results: Verify you can view each recipient type and there are no missing recipient types. Select one or two of the combinations below, and verify they save correctly.
    1. Create and save a draft that has (1) To: and (1) Cc: recipients
    2. Create and save a draft that has (1) To: and (1) Bcc:: recipients
    3. Create and save a draft that has (1) To:, (1) Cc:, and (1) Bcc: recipient
    4. Create and save a draft that has (1) To: and (2) Cc: recipients
    5. Create and save a draft that has (1) To: and (2) Bcc:: recipients
    6. Create and save a draft that has (1) To:, (2) Cc:, and (1) Bcc: recipient
    7. Create and save a draft that has (1) To:, (1) Cc:, and (2) Bcc: recipient
    8. Create and save a draft that has (1) To:, (2) Cc:, and (2) Bcc: recipient

Editing a Draft

  1. Verify you can edit a draft from the draft folder
    1. From the Thread pane
      1. Double-click on message in draft folder then edit the message
      2. Click on the Edit Draft button in the header of the message (right side)
      3. Select a draft and open it using the "Edit Message as New" message menu option then edit the message
    2. From the Message window
      1. Verify it does not open in a Message window
  2. Verify you can edit a draft with various information (testing only one attribute at a time)
    1. Verify you can edit a blank message with no information
    2. For each draft saved in the previous section Saving a Draft - verify you can edit the changes.
    3. Verify you can edit each recipient type and there are no missing recipient types
    1. Spell check a document
    2. Spell check a document and then edit it again (check that it will contain the new changes)

Sending a Draft

  1. Verify you can send a draft from the draft folder and message is removed from the Drafts Folder after sending.
    1. From the Thread pane
      1. Select Edit Draft button in header or double click on message in draft folder, then click Send
      2. Select a draft and open it using the "Edit Message as New" message menu option then send the message
  2. Verify you can send a draft with various attributes
    1. Verify you can send a blank message with no information
    2. For each draft saved in the previous section Saving a Draft
  3. Additional tests. Expected results: Verify you can send each recipient type and there are no missing recipient types. Select one or two of the combinations below, Send and verify all recipients were sent to.
    1. Create and save a draft that has (1) To: and (1) Cc: recipients
    2. Create and save a draft that has (1) To: and (1) Bcc:: recipients
    3. Create and save a draft that has (1) To:, (1) Cc:, and (1) Bcc: recipient
    4. Create and save a draft that has (1) To: and (2) Cc: recipients
    5. Create and save a draft that has (1) To: and (2) Bcc:: recipients
    6. Create and save a draft that has (1) To:, (2) Cc:, and (1) Bcc: recipient
    7. Create and save a draft that has (1) To:, (1) Cc:, and (2) Bcc: recipient
    8. Create and save a draft that has (1) To:, (2) Cc:, and (2) Bcc: recipient
  4. Enable the option to Spell check a document on send
    1. Spell Check then send
    2. Spell Check then cancel
    3. Spell Check then re-edit and send
    4. Spell Check then re-edit and save
    5. Spell Check then re-edit and spell check again
    6. Spell Check then re-edit and spell check again. Finally send
  5. Check Sent Later with a random sample of the criteria used for Send Now

Deleting a Draft

  1. Verify you can delete a draft and the message is removed from the draft folder and moved to the Trash folder for that same account.
    1. Verify you can delete a draft from the Thread window using the
      1. Delete key
      2. Edit->Delete Message
      3. Right mouse click
    2. Verify you can delete a draft from the Message pane using the
      1. Delete key
      2. Edit->Delete Message
      3. Right mouse click
    3. Select multiple draft using the Control+click and verify you can delete multiple drafts using the
      1. Delete key
      2. Edit->Delete Message
      3. Right mouse click
    4. Select multiple draft using the Shift+click and verify you can delete multiple drafts using the
      1. Delete key
      2. Edit->Delete Message
      3. Right mouse click
    5. Undo the last delete and verify the draft was moved back into the drafts folder for that same account
    6. Redo the last delete
      1. Verify the draft was moved back to the Trash folder (POP and IMAP Move to Trash Model)
      2. Verify the draft was "marked as deleted" (IMAP Delete Model)