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:
- 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. - 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
- Check Message content to see if it is really an HTML message (HTML tags), if not send plain text, if yes, send HTML
- 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
- Preferences formatting: HTML vs Plain Text default preference
checkbox
- 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
- Address Book's recipient address card shows "Prefers to receive
messages fromatted as:"
- Unknown (default)
- Plain Text
- HTML
- Message Formatting in Account Settings
- "Compose message in HTML format" can be checked (default) or unchecked
- 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
- You can specify how a mail sends HTML message to recipients
that are not listed as being able to receive them:
- Compose window Menu Option Format (Over-rides the Preference
formatting)
- HTML Question dialog:
This dialog will come up when you send HTML and one of the condition exits:- Recipient does not have address card Personal Address Book, Others Address Book or Collected Address Book
- Recipent's card in Address Book shows "Unknown"
- Recipient's is a newsgroup
- 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)
-
- Dialog is dismissable
- Esc
- Close/X box
- Address Book
- New Card>
- "Prefers to receive messages formated as:" with drop down list: Unknown, Plain Text, HTML
- New Card>
Testing the Intelligent Send features on Mail
- Tests using Compose window Menu Option|Format (This options
over-rides options selected in Prefs Sending Format):
- Receipient's address card is set to "Unknown"
- 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.
- Auto Detect (default):
- Address Book - Address book's option, defaults to "Unknown".
Preference set to "Ask Me"
- Add a new Address card leave at default "Unknown"
- Send a HTML message to this person and verify that the Intelligent Send dialog appears
- Modify an existing Address Card set to "Plain Text"
- Send a HTML message to this person and verify that the Intelligent Send dialog does NOT appear, message sent in Plain Text
- Modify an existing Address Card set to "HTML"
- Send a HTML message to this person and verify that the Intelligent Send dialog does NOT appear, message sent in HTML
- Delete the Address Card: (Note: if no entry is found, it
assumes "Unknown")
- Send a HTML message to someone not in the Address Book and verify that the Intelligent Send dialog appears
- Add a new Address card leave at default "Unknown"
- Messenger Edit->Mail/News Account Settings: HTML vs Plain Text
- Checkbox "Compose message in HTML format" is unchecked: Use the
Plain editor to compose messages and ..
- Send a Plain Text message to verify that the Intelligent Send Question dialog does not appear
- Send a Plain Text message to verify that the text message sends smoothly.
- Verify display
- Verify source
- Checkbox "Compose messages in HTML format" is checked: Use the
HTML editor to compose messages and ...
- Send a HTML message to a recipient with "Unknown" selected, verify that the Intelligent Send dialog appears
- 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
- Checkbox "Compose message in HTML format" is unchecked: Use the
Plain editor to compose messages and ..
- 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.
- Ask me what to do (default): verify that this will cause the Intelligent Send Question dialog to appear
- Convert the message to plain text: check this item and send a
HTML message.
- Verify that HTML text has been converted to plain text.
- Verify display
- Verify source
- Send the message in HTML: Type in rich text, verify that:
- The HTML Question dialog does not come up and message sends smoothly.
- Verify display
- Verify source (should contain HTML rich text)
- Send the message in Plain text and HTML: Type in rich text,
verify that:
- the Question dialog does not come up
- and message sends smoothly.
- Verify display
- Verify source (should contain both plain text and html)
- Tests using HTML Question dialog:
- 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.
- Create (2) Address book cards with Unknown, (2) cards with HTML and (1) card with Plain.
- Compose rich text using HTML
- Option tag leaves as Auto Detect (default)
- Select default (Ask me what to do) from Preference formatting
- Recipients domain is not listed in preferences: Send Format, HTML Domains
- Recipients address card checkbox is checked "Unknown"
- Send a HTML message to a single user
- verify that HTML question dialog appears.
- Send a HTML message to multiple users:
- when all of the users have the "Unknown" selected, verify that HTML question dialog appears.
- when some of the users have the "Unknown" selected, verify that HTML question dialog comes up.
- When all of the users have the "HTML" selected, verify that HTML question dialog does not come up.
- Click on Don't Send button:
- verify that question dialog dismisses and message does not send
- verify that when dialog dismisses, user goes back to compose window, contents undisturbed
- verify compose window left in useable state: can continue composing, can close, etc.
- Windows and Linux only, close HTML Question dialog with the (X)
with message composed, verify:
- user returns to the compose window, contents undisturbed
- compose window is back to be in useable state: can continue composing, can close, etc.
- Windows only, close the HTML Question dialog by pressing Esc
with message composed, verify:
- user returns to the compose window, contents undisturbed
- compose window is back to be in useable state: can continue composing, can close, etc.
- Try to close Compose window with question dialog still up. Verify the Compose window should not close and
- Try to Exit with question dialog still up. Verify that you should not be able to exit.
- Send mail message to user/users with the HTML and Plain Text
option selected
- verify smooth send
- verify display
- verify source
- Send mail message with the Plain Text option selected
- verify smooth send
- verify display
- verify source
- Send mail message with the HTML Only option selected
- verify smooth send
- verify display
- verify source
- 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.
- Reply to plain text message
- Using Plain text editor to reply to a plain text message
- Using HTML editor to reply to a plain text message
- Reply to HTML message
- Using Plain text editor to reply to a HTML rich text message
- Using HTML editor to reply to a HTML rich text message
- Forward plain text message
- Using Plain text editor to forward a plain text message
- Using HTML editor to forward a plain text message
- Forward HTML message
- Using Plain text editor to reply to a HTML rich text message
- Using HTML editor to reply to a HTML rich text message
Testing Intelligent Send on Newsgroup
- 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,
- Verify that the HTML Mail Question dialog should come up.
- Verify that the HTML Mail Question dialog contains these
choices:
- Send in Plain Text and HTML
- Send in Plain Text Only
- Send in HTML Only
- Verify Don't Send button:
- question dialog dismisses
- user left back in compose window, contents undisturbed
- compose window left in useable state: can continue composing, can close, etc.
- Press Esc when Question dialog is up and with message composed,
verify:
- user returns to the compose window, contents undisturbed
- compose window is back to be in useable state: can continue composing, can close, etc.
- Close Question dialog with message composed, verify:
- user returns to the compose window, contents undisturbed
- compose window is back to be in useable state: can continue composing, can close, etc.
- Close Compose window with question dialog still up, verify nothing happens. Compose window should not close.
- Exit with HTML Question dialog still up. Verify that you should not be able to exit the application.
- Send news postings with the Send in Plain Text and HTML option
selected
- verify smooth send
- verify display
- verify source
- Send news postings with the Send in Plain Text Only option
selected
- verify smooth send
- verify display
- verify source
- Send news posting with the Send in HTML Only option selected
- verify smooth send
- verify display
- verify source
- Basic Send tests on newsgroup: using the Preferences options
- Verify that preference options should not have
any effect on newsgroup
- 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)
- 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)
- Send only Plain Text news message
- Verify that no HTML Question dialog will come up.
- Set Preferece Formatting "Send the message in HTML anyway".
Send a news posting using HTML rich text..
- Send each option to single group, verify smooth send and verify message should be in text only, not in HTML format.
- Verify that preference options should not have
any effect on newsgroup
- 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:
- If Auto Detect is selected (Prefs sets "Send the message in
HTML anyway)
- Verify that upon Send, HTML Mail Question dialog appears because Prefs has no effect on News.
- If Plain Text Only is selected
- Verify that upon Send, no HTML Mail Question dialog should display.
- verify smooth send
- verify display
- verify source
- If HTML only is selected
- Verify that upon Send, no HTML Mail Question dialog should display.
- verify smooth send
- verify display
- verify source
- If Plain Text and HTML is selected
- Verify that upon Send, no HTML Question dialog should display.
- verify smooth send
- verify display
- verify source
- If Auto Detect is selected (Prefs sets "Send the message in
HTML anyway)
Mail and News Message contents tests
- Message Contents
- Plain text message
- 7 bit characters
- 8 bit characters (extended or accented characters)
- HTML messages
- Plain text message
- 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
Messagessent 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 - Verify message source tests: Check the page source for each option
posted.
- sent as HTML
- sent as plain text
- sent as HTML and plain text