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 > Templates

Feature Test Spec: Mail and News Component

Mail and News Component: Templates

Written by Peter Mock
Updated by Esther Goes

References

UI Specification:
Other: Communicator Templates
Gromit Template Specification

Description

Basically a template is like a "draft" that we already have in Netscape 6.2, but unlike a draft, it does not get deleted after it is sent. These tests needs to be repeated on a POP server, IMAP server, and NNTP (news) server.

Saving a Template

Preference

  1. Verify when you create a new profile, you automatically have a template folder created
    1. Verify if your default Mail Server is IMAP, the template folder is created on the IMAP server
    2. Verify if your default Mail Server is POP, the template folder is create on the Local server and is populated with 6 Templates.
  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 Template is listed under the sections "Special Folders"
    4. Verify the Template can be set via drop-down menus.
    5. Verify you have a Cancel button
    6. Verify you have a OK button
  3. Verify the Choose Folder functionality
    1. In the "Folder Template on" drop down menu, change the location template folder location from IMAP to POP. Verify the changes takes effect
    2. In the "Folder Template on" drop down menu, change the location template folder location from POP to IMAP. Verify the changes takes effect
    3. In the "Other" drop down menu, select another folder to be the template folder. Select one to be on the IMAP server. Verify the changes takes effect
    4. In the "Other" drop down menu, select another folder to be the template folder. Select one to be on the Local server. Verify the changes takes effect
    5. In the "Other" list, create a new folder and use the drop down menu to select the newly created folder. Verify the changes takes effect (
    6. Verify the cancel button exit the dialog and does not save any changes that you have made
    7. 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 template (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. Verify you can save as template 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 template 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:
    7. Message many levels deep
    8. Re-save message
    9. A previous template

Viewing a Template

  1. Verify you can select a template to view it from Template folder
    1. From the Thread pane, select a message in Template folder to load it Message pane. (Note, you can not open the message into a separate Message Window)
  2. Verify you can view a template with various information (testing only one attribute at a time)
    1. Verify you can view a blank message with no information
    2. For each template saved in the previous section Saving a Template - 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 template that has (1) To: and (1) Cc: recipients
    2. Create and save a template that has (1) To: and (1) Bcc:: recipients
    3. Create and save a template that has (1) To:, (1) Cc:, and (1) Bcc: recipient
    4. Create and save a template that has (1) To: and (2) Cc: recipients
    5. Create and save a template that has (1) To: and (2) Bcc:: recipients
    6. Create and save a template that has (1) To:, (2) Cc:, and (1) Bcc: recipient
    7. Create and save a template that has (1) To:, (1) Cc:, and (2) Bcc: recipient
    8. Create and save a template that has (1) To:, (2) Cc:, and (2) Bcc: recipient

Edit a Template

  1. Verify you can edit a template from Template folder
    1. From the Thread pane
      1. Double-clicking on message in Template folder then edit the message
      2. Select a template 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 template with various information (testing only one attribute at a time)
    1. Verify you can edit a blank message with no information
    2. For each template saved in the previous section Saving a Template - verify you can edit the changes.
    3. Verify you can edit each recipient type and there are no missing recipient types
    4. Spell check a document
    5. Spell check a document and then edit it again (check that it will contain the new changes)

Send a Template

  1. Verify you can send a template from Template folder and the message is not removed from the Templates folder
    1. From the Thread pane
      1. Double-clicking on message in Template folder then send the message
      2. Select a template and open it using the "Edit Message as New" message menu option then send the message
  2. Verify you can send a template with various information (testing only one attribute at a time)
    1. Verify you can send a blank message with no information
    2. For each template saved in the previous section Saving a Template - Message Compose Editor, verify you can send the message. Note, there are a lot of templates to edit from the previous section
  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 template that has (1) To: and (1) Cc: recipients
    2. Create and save a template that has (1) To: and (1) Bcc:: recipients
    3. Create and save a template that has (1) To:, (1) Cc:, and (1) Bcc: recipient
    4. Create and save a template that has (1) To: and (2) Cc: recipients
    5. Create and save a template that has (1) To: and (2) Bcc:: recipients
    6. Create and save a template that has (1) To:, (2) Cc:, and (1) Bcc: recipient
    7. Create and save a template that has (1) To:, (1) Cc:, and (2) Bcc: recipient
    8. Create and save a template 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

Delete a Template

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