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 > Intelligent Send Feature Test Plan

Feature Test Spec: Mail and News Component

Mail and News Component:
Basic Mail and News Functionality: Intelligent Send

Written by Esther Goes

Description: The purpose of this feature is to avoid sending HTML messages to recipients who cannot read HTML mail or news messages.

Verify the expected results after each test. Use the View|Page Source feature to confirm results.
Example:To verify receipt of a message, look at the following:

Content-Type is text/html or text/plain
Content-Transfer-Encoding is 7bit or 8bit (HTML can be only 7 bit while Plain Text can be 7 bit or 8 bit)
Whether there are any HTML tags present in the message

The Intelligent Send feature logic works like this. When the user send a HTML rich text message, it check in this order:

  1. Compose Window Menu Options|Format allows you to choose which format you want (Menu Option|Format takes precedence over Address Book and Preferences)
    If one of the receipient is a newsgroup, it shows the HTML Mail Question dialog.
  2. Else, it searches the Address Book to see if recipient can receive HTML, if no entry is found, it assumes recipient does not support HTML. Address book is searched in this order:
    • Personal Address Book
    • Others Address Book
    • Collected Address Book
    If all receipient can accept HTML, it sends HTML
  3. Check Message content to see if it is really an HTML message (HTML tags), if not send plain text, if yes, send HTML
  4. Check Preference "Mail and Newsgroups Formatting" selections.

General Properties for options: Verify controls, visuals, basic working order, etc. for these access locations for intelligent send related options.

Note: Smoothly in this spec means mail is sent without HTML Question dialog showing up .

Checking Dialogs and option defaults

  1. Preferences formatting: HTML vs Plain Text default preference checkbox
    1. Compose window Menu Option Format (Over-rides the Preference formatting)
      • Auto Detect: It will search Preference format and decide which format to use.
      • Plain text only
      • Rich Text (HTML) only
      • Plain and Rich (HTML) text
    2. Address Book's recipient address card shows "Prefers to receive messages fromatted as:"
      • Unknown (default)
      • Plain Text
      • HTML
    3. Message Formatting in Account Settings
      • "Compose message in HTML format" can be checked (default) or unchecked
    4. Preferences Mail and Newsgroups Formatting:
      • You can specify how a mail sends HTML message to recipients that are not listed as being able to receive them:
        • Ask me what to do (Mail prompts you to choose a format)
        • Convert the message into plain text
        • Send the message in HTML anyway
        • Send the message in both plain text and HTML
  2. HTML Question dialog:
    This dialog will come up when you send HTML and one of the condition exits:
    1. Recipient does not have address card Personal Address Book, Others Address Book or Collected Address Book
    2. Recipent's card in Address Book shows "Unknown"
    3. Recipient's is a newsgroup
      1. Radio Button:
        • Send in Plain Text and HTML
        • Send in Plain Text only
        • Send in HTML only
        • Send button (is selected by default; Verify the button sends the compose message)
        • Cancel button (verify the changes are not made if you Cancel this and you are returned to the Compose window)
    4. Dialog is dismissable
      • Esc
      • Close/X box
  3. Address Book
    1. New Card>
      • "Prefers to receive messages formated as:" with drop down list: Unknown, Plain Text, HTML

Testing the Intelligent Send features on Mail

  1. Tests using Compose window Menu Option|Format (This options over-rides options selected in Prefs Sending Format):
    1. Receipient's address card is set to "Unknown"
    2. Select default from Preference|Message Formatting "Ask Me"
      • Auto Detect (default):
        • Compose a rich text HTML message
        • Receipient's address card checks "Unknown"
        • Select default from Preference|Message Formatting "Ask Me"
        • Verify the Ask Me question dialog should display on Send
      • Plain Text Only
        • Compose a rich text HTML message
        • Verify that no question dialog should display on Send
        • verify smooth send
        • verify display
        • verify source
      • HTML only
        • Compose a rich text HTML message
        • Verify that no question dialog should display on Send
        • verify smooth send
        • verify display
        • verify source
      • Plain Text and HTML
        • Compose a rich text HTML message
        • upon Send, HTML question dialog should not appear to user
        • verify smooth send
        • verify display
        • verify source that HTML and plain text were sent.
  2. Address Book - Address book's option, defaults to "Unknown". Preference set to "Ask Me"
    1. Add a new Address card leave at default "Unknown"
      1. Send a HTML message to this person and verify that the Intelligent Send dialog appears
    2. Modify an existing Address Card set to "Plain Text"
      1. Send a HTML message to this person and verify that the Intelligent Send dialog does NOT appear, message sent in Plain Text
    3. Modify an existing Address Card set to "HTML"
      1. Send a HTML message to this person and verify that the Intelligent Send dialog does NOT appear, message sent in HTML
    4. Delete the Address Card: (Note: if no entry is found, it assumes "Unknown")
      1. Send a HTML message to someone not in the Address Book and verify that the Intelligent Send dialog appears
  3. Messenger Edit->Mail/News Account Settings: HTML vs Plain Text
    1. Checkbox "Compose message in HTML format" is unchecked: Use the Plain editor to compose messages and ..
      1. Send a Plain Text message to verify that the Intelligent Send Question dialog does not appear
      2. Send a Plain Text message to verify that the text message sends smoothly.
      3. Verify display
      4. Verify source
    2. Checkbox "Compose messages in HTML format" is checked: Use the HTML editor to compose messages and ...
      1. Send a HTML message to a recipient with "Unknown" selected, verify that the Intelligent Send dialog appears
      2. Start a HTML compose window and don't use any rich text formatting then send
        • Verify that the Intelligent Send dialogs does not appear
        • Verify that the message is sent as 7 bit.
        • Verify display
        • Verify source
  4. Messenger's Edit->Preferences->Formatting: You can specify how Mail sends HTML messages to recipients that are not listed as being able to receive them. Make sure the recipients card is set at "Unknown". Check each of the selections and verify.
    1. Ask me what to do (default): verify that this will cause the Intelligent Send Question dialog to appear
    2. Convert the message to plain text: check this item and send a HTML message.
      1. Verify that HTML text has been converted to plain text.
      2. Verify display
      3. Verify source
    3. Send the message in HTML: Type in rich text, verify that:
      1. The HTML Question dialog does not come up and message sends smoothly.
      2. Verify display
      3. Verify source (should contain HTML rich text)
    4. Send the message in Plain text and HTML: Type in rich text, verify that:
      1. the Question dialog does not come up
      2. and message sends smoothly.
      3. Verify display
      4. Verify source (should contain both plain text and html)
  5. Tests using HTML Question dialog:
    1. Should come up as default (Ask me) with HTML editor. To bring up this catalog, type in rich text and send to a user with the following pre-setup conditions.
      1. Create (2) Address book cards with Unknown, (2) cards with HTML and (1) card with Plain.
      2. Compose rich text using HTML
      3. Option tag leaves as Auto Detect (default)
      4. Select default (Ask me what to do) from Preference formatting
      5. Recipients domain is not listed in preferences: Send Format, HTML Domains
      6. Recipients address card checkbox is checked "Unknown"
    2. Send a HTML message to a single user
      1. verify that HTML question dialog appears.
    3. Send a HTML message to multiple users:
      1. when all of the users have the "Unknown" selected, verify that HTML question dialog appears.
      2. when some of the users have the "Unknown" selected, verify that HTML question dialog comes up.
      3. When all of the users have the "HTML" selected, verify that HTML question dialog does not come up.
    4. Click on Don't Send button:
      1. verify that question dialog dismisses and message does not send
      2. verify that when dialog dismisses, user goes back to compose window, contents undisturbed
      3. verify compose window left in useable state: can continue composing, can close, etc.
    5. Windows and Linux only, close HTML Question dialog with the (X) with message composed, verify:
      1. user returns to the compose window, contents undisturbed
      2. compose window is back to be in useable state: can continue composing, can close, etc.
    6. Windows only, close the HTML Question dialog by pressing Esc with message composed, verify:
      1. user returns to the compose window, contents undisturbed
      2. compose window is back to be in useable state: can continue composing, can close, etc.
    7. Try to close Compose window with question dialog still up. Verify the Compose window should not close and
    8. Try to Exit with question dialog still up. Verify that you should not be able to exit.
    9. Send mail message to user/users with the HTML and Plain Text option selected
      1. verify smooth send
      2. verify display
      3. verify source
    10. Send mail message with the Plain Text option selected
      1. verify smooth send
      2. verify display
      3. verify source
    11. Send mail message with the HTML Only option selected
      1. verify smooth send
      2. verify display
      3. verify source
  1. Reply to plain text message
    1. Using Plain text editor to reply to a plain text message
    2. Using HTML editor to reply to a plain text message
  2. Reply to HTML message
    1. Using Plain text editor to reply to a HTML rich text message
    2. Using HTML editor to reply to a HTML rich text message
  3. Forward plain text message
    1. Using Plain text editor to forward a plain text message
    2. Using HTML editor to forward a plain text message
  4. Forward HTML message
    1. Using Plain text editor to reply to a HTML rich text message
    2. Using HTML editor to reply to a HTML rich text message

Testing Intelligent Send on Newsgroup

  1. By default, if the Menu Options Format is Auto Detect, when you send a news message using HTML rich text and when one of the receipient is a newsgroup,
    1. Verify that the HTML Mail Question dialog should come up.
    2. Verify that the HTML Mail Question dialog contains these choices:
      1. Send in Plain Text and HTML
      2. Send in Plain Text Only
      3. Send in HTML Only
    3. Verify Don't Send button:
      1. question dialog dismisses
      2. user left back in compose window, contents undisturbed
      3. compose window left in useable state: can continue composing, can close, etc.
    4. Press Esc when Question dialog is up and with message composed, verify:
      1. user returns to the compose window, contents undisturbed
      2. compose window is back to be in useable state: can continue composing, can close, etc.
    5. Close Question dialog with message composed, verify:
      1. user returns to the compose window, contents undisturbed
      2. compose window is back to be in useable state: can continue composing, can close, etc.
    6. Close Compose window with question dialog still up, verify nothing happens. Compose window should not close.
    7. Exit with HTML Question dialog still up. Verify that you should not be able to exit the application.
    8. Send news postings with the Send in Plain Text and HTML option selected
      1. verify smooth send
      2. verify display
      3. verify source
    9. Send news postings with the Send in Plain Text Only option selected
      1. verify smooth send
      2. verify display
      3. verify source
    10. Send news posting with the Send in HTML Only option selected
      1. verify smooth send
      2. verify display
      3. verify source
  2. Basic Send tests on newsgroup: using the Preferences options
    1. Verify that preference options should not have any effect on newsgroup
      1. Set Preferece Formatting "Send the message in HTML anyway". Send a news posting using HTML rich text..
        • Verify that the Question dialog still comes up, asking you to select HTML checkbox. (because Prefs has no effect on News, you still need to make a selection in the HTML Question dialog)
      2. Send a news message in Plain text and HTML: Type in rich text,
        • verify that the Question dialog still comes up, asking you to select HTML checkbox from the compose window (because Prefs has no effect on News, you need to make a selection in the Question dialog)
      3. Send only Plain Text news message
        • Verify that no HTML Question dialog will come up.
    2. Send each option to single group, verify smooth send and verify message should be in text only, not in HTML format.
  1. Tests news message using Compose window Options Format: Compose a news message using HTML rick text, select each of the following choices from the Options Format menu:
    1. If Auto Detect is selected (Prefs sets "Send the message in HTML anyway)
      1. Verify that upon Send, HTML Mail Question dialog appears because Prefs has no effect on News.
    2. If Plain Text Only is selected
      1. Verify that upon Send, no HTML Mail Question dialog should display.
      2. verify smooth send
      3. verify display
      4. verify source
    3. If HTML only is selected
      1. Verify that upon Send, no HTML Mail Question dialog should display.
      2. verify smooth send
      3. verify display
      4. verify source
    4. If Plain Text and HTML is selected
      1. Verify that upon Send, no HTML Question dialog should display.
      2. verify smooth send
      3. verify display
      4. verify source

Mail and News Message contents tests

  1. Message Contents
    1. Plain text message
      1. 7 bit characters
      2. 8 bit characters (extended or accented characters)
    2. HTML messages
  2. Verify abiltity to send and read (proper display of) various types of message contents in mail/newsgroup:
    Type of mail message or news using compose window: Run tests in Mail and Newsgroup Need to set Preference->Mail Newsgroups->
    Composing
    Messages
    sent as HTML sent as plain text sent as HTML and text
    Original is basic HTML/rtf format (bold letters, italics, color) mail n/a
    news n/a
    Original has inserted image(s) mail n/a
    news n/a
    Original has image attachments (variety of image types for each platform): mail view inline
    view as link
    as attachment
    news view in line
    view as link
    as attachment
    Original has web page attachment(s) mail n/a
    news n/a
    Original has vcard attachment mail n/a
    news n/a
  3. Verify message source tests: Check the page source for each option posted.
    1. sent as HTML
    2. sent as plain text
    3. sent as HTML and plain text