You are here: Mozilla MailNews Functional / UI Tests > Newsgroup Functionality
Feature Test Spec: Mail and News Component
Mail and News Component:
News/Newsgroup Feature Functionality
Written by Karen Huang and
Stephen Donner
References:
UI Specification: http://www.mozilla.org/mailnews/specs
RFC 0977 - NNTP Protocol: http://www.ietf.org/rfc/rfc0977.txt
RFC 1036 - Standard interchange of USENET messages: http://www.ietf.org/rfc/rfc1036.txt
RFC 2396 - URI Syntax: http://www.ietf.org/rfc/rfc2396.txt
RFC 2980 - Common NNTP extensions: http://www.ietf.org/rfc/rfc2980.txt
Public password-protected server - Eclipse.org
Misc. Tests: 25 tests to run created by Seth Spitzer
Description
This Test Spec describes the Feature Functionality for News/Newsgroup.
Table of Contents
- Server Prioritization
- NNTP Log File Setup
- Preferences
- NNTP Commands
- Opening a news server
- URI Testing
- Subscribing to Newsgroups
- Unsubscribing toNewsgroups
- Download News Headers
- View/Read News Articles
- Post News Articles
- Add Servers
- Delete Servers
- Update Message Count
- Cancelling a Message Post
- How we handle Expired News Postings
- Miscellaneous Server Conditions/Tests
Server Prioritization
News Servers | Version | Notes | ||
---|---|---|---|---|
1 | Non-Secure News Server | Non-Password-Protected News Server | news://news.mozilla.org/netscape.test | |
2 | Password-Protected News Server | Collabra 3.52 | news://poisonivy.mcom.com/xrated (password protected, only one authorized user) news://zzz |
|
3 | Secure News Server | Non-Password-Protected News Server | snews://secnews/netscape.communicator (Internal only) | |
4 | Password-protected News Server | snews://secnews/netscape.champions | ||
5 | Secure News on a nonstandard port | There are some reserved ports that are disallowed (110 is one ofthem)- Laurel is looking up others | ||
* | External News Server | Non-Password-Protected News Server | news://news.qualitynet.net | |
* | Password-Protected News Server |
NNTP Log File Setup
The log is written over every time you re-launch Mozilla for all the following platforms:
- Windows 95/98:
- Create "c:\tmp" for NNTP log file reside if there is no such directory
- Insert the following line into your autoexec.bat file:
- Set NSPR_LOG_MODULES=NNTP:5
- Set NSPR_LOG_FILE=c:\tmp\[filename]
- (filename can be defined by you)
- Reboot your system
- WinNT/2000:
- Create "c:\tmp" for NNTP log file reside if there is no such directory
- Use the control panel | System | Environment tool to set the PRLOGenv variable:
- Variables: NSPR_LOG_MODULES Value: NNTP:5
- Variables: NSPR_LOG_FILE Value: c:\tmp\[filename]
- (filename can be defined by you)
- Reboot your system
- Unix:
- Add a line to ~/.cshrc file of the csh shell as following:
- Set NSPR_LOG_MODULES NNTP:5
- Set NSPR_LOG_FILE /u/[unix userlogin]/tmp/[filename]
- (filename can be defined by you)
- Mac:
- Create a text file that contains the following lines in a text editor(ex: BBEdit)
- After save this file, drag and drop this file on the Netscape/Mozilla application icon, the log file will be created from the seamonkey folder.
- ARGS:-mail
- ENV:NSPR_LOG_MODULES=NNTP:5
- ENV:NSPR_LOG_FILE=[filename]
Preferences in Account Manager
Server level
- Account Name should be as entered in Account Wizard, by default this is <servername>.
- Other fields should be populated:
- Name (from Account Wizard)
- Email address (from Account Wizard)
- Reply to (only if you've specified this)
- Organization (only if you've specified this)
- No signature should be enabled by default
- 'Compose messages in HTML format' should be unchecked (disabled) by default
Server settings
- Server type should state 'News Server (NNTP)'
- Default port should be 119.
- "Use SSL..." should be unchecked by default. Verify that checking this changes the default port from 119to 563.
- "Check for new messages every X minutes" should be unchecked bydefault.
- "Ask me before downloading..." should default to 500. Verify that you can change this preference and it will appear in the "Download Headers" dialog on a new newsgroup.
- newsrc file location should point to: News\news.rc in the sltdirectory of the user.
- Local Directory location should point to: News\host-news.mcom.com in the slt directory of the user.
Copies and Folders
- All prefs here (drafts, templates, sent messages) should point to the appropriate 'drafts', 'templates' and 'sent' Local Folder. Verify that changing these locations and sending/saving amessagegets put in the correct folder.
Addressing
- Taken care of by LDAP testcases
Offline & Disk Space
- Taken care of by Offline
NNTP Commands that Mozilla supports
- ARTICLE
- BODY
- GROUP
- HEAD
- HELP
- IHAVE
- LAST
- LIST
- NEWGROUPS
- NEWNEWS
- NEXT
- POST
- QUIT
- SLAVE
- STAT
Opening an NNTP server
Non-Secure News
- Non-Password-Protected
- Direct:
- Single-click (in folder Pane)
- Navigate:
- Via a form of "next" navigation from a previous group
- Via a form of "next" navigation from a mail folder
- URL:
- Via simple path URL when default news server does offer such agroup(simple path URL does not include server name)
- Via simple path URL when a non-news server offer such a group (simplepath URL does not include server name) -> The open should not be successful(graceful failure)
- Via URL from news message
- Via URL from mail message
- Via URL when server is NOT yet added
- Via URL when group is NOT already subscribed
- Via URL when group is already subscribed
- Direct:
- Password-Protected
- Direct:
- Single-click (in folder Pane)
- Navigate:
- Via a form of "next" navigation from a previous group
- Via a form of "next" navigation from a mail folder
- URL:
- Via simple path URL when default news server does offer such agroup(simple path URL does not include server name)
- Via simple path URL when a non-news server offer such a group (simplepath URL does not include server name) -> The open should not be successful(graceful failure)
- Via URL from news message
- Via URL from mail message
- Via URL when server is NOT yet added
- Via URL when group is NOT already subscribed
- Via URL when group is already subscribed
- Direct:
Secure News
- Non-Password-Protected
- Direct:
- Single-click (in folder Pane)
- Navigate:
- Via a form of "next" navigation from a previous group
- Via a form of "next" navigation from a mail folder
- URL:
- Via simple path URL when default news server does offer such agroup(simple path URL does not include server name)
- Via simple path URL when a non-news server offer such a group (simplepath URL does not include server name) -> The open should not be successful(graceful failure)
- Via URL from news message
- Via URL from mail message
- Via URL when server is NOT yet added
- Via URL when group is NOT already subscribed
- Via URL when group is already subscribed
- Password-Protected
- Direct:
- Single-click (in folder Pane)
- Navigate:
- Via a form of "next" navigation from a previous group
- Via a form of "next" navigation from a mail folder
- URL:
- Via simple path URL when default news server does offer such agroup (simple path URL does not include server name)
- Via simple path URL when a non-news server offer such a group (simplepath URL does not include server name) -> The open should not be successful(graceful failure)
- Via URL from news message
- Via URL from mail message
- Via URL when server is NOT yet added
- Via URL when group is NOT already subscribed
- Via URL when group is already subscribed
Secure News on a Nonstandard Port
-
- Direct:
- Single-click (in folder Pane)
- Navigate:
- Via a form of "next" navigation from a previous group
- Via a form of "next" navigation from a mail folder
- URL:
- Via simple path URL when default news server does offer such agroup(simple path URL does not include server name)
- Via simple path URL when a non-news server offer such a group (simplepath URL does not include server name) -> The open should not be successful(graceful failure)
- Via URL from news message
- Via URL from mail message
- Via URL when server is NOT yet added
- Via URL when group is NOT already subscribed
- Via URL when group is already subscribed
- Direct:
- External News Servers
- Stress/Special Conditions/Tests
URI Type | Under this condition | Performs this action |
---|---|---|
server not yet added | adds both news.mozilla.org and netscape.test | |
news://news.mozilla.org/netscape.test | newsgroup not yet added | adds netscape.test to news.mozilla.org |
any ng is already open | selects netscape.test on news.mozilla.org | |
news://netscape.test news:netscape.test |
server not yet added | invokes account wizard |
newsgroup not yet added | adds netscape.test to default server | |
any ng is already open | selects netscape.test on default server | |
no msg window | opens mail, selects netscape.test on default server | |
news://poisonivy.mcom.com:563/xrated | server not yet added | adds poisonivy.mcom.com and xrated on port 563 |
newsgroup not yet added | adds xrated to poisonivy.mcom.com on port 563 | |
any ng is already open | selects xrated on poisonivy.mcom.com port 563 | |
no msg window | opens mail, selects xrated on poisonivy.mcom.com port 563 | |
snews://secnews.netscape.com/n.p.m.mail-news | server not yet added | adds secnews.netscape.com on port 563 with n.p.m.mail-news (Use SSLchecked) |
newsgroup not yet added | adds n.p.m.mail-news to secnews.netscape.com | |
any ng is already open | selects n.p.m.mail-news on secnews.netscape.com | |
no msg window | opens mail, selects n.p.mail-news on secnews.netscape.com | |
snews://netscape.test snews:netscape.test |
server not yet added | invokes account wizard |
newsgroup not yet added | adds netscape.test to default server | |
any ng is already open | selects netscape.test on default server | |
no msg window | opens mail, selects netscape.test on default server |
Subscribing to Newsgroups
- Via the Subscribe UI
- By Copying and pasting into the URL bar and hitting enter - news://news.mozilla.org/mailnews
- By clicking on a pre-created link in the URL bar
- By clicking on a link in a webpage or e-mail
- Subscribe to one newsgroup
- Subscribe to several newsgroups at once
- Subscribe to all newsgroups at once
- By right-clicking on the news server and selecting "subscribe" fromthe context menu
-
- Non-Password Protected
- Via the Subscribe UI
- By Copying and pasting into the URL bar and hitting enter - news://news.mozilla.org/mailnews
- By clicking on a pre-created link in the URL bar
- By clicking on a link in a webpage or e-mail
- Subscribe to one newsgroup
- Subscribe to several newsgroups at once
- Subscribe to all newsgroups at once
- By right-clicking on the news server and selecting "subscribe" fromthe context menu
- Non-Password Protected
- Password Protected
- Via the Subscribe UI
- By Copying and pasting into the URL bar and hitting enter - news://news.mozilla.org/mailnews
- By clicking on a pre-created link in the URL bar
- By clicking on a link in a webpage or e-mail
- Subscribe to one newsgroup
- Subscribe to several newsgroups at once
- Subscribe to all newsgroups at once
- By right-clicking on the news server and selecting "subscribe" fromthe context menu
Secure News
- Non-Password Protected
- Via the Subscribe UI
- By Copying and pasting into the URL bar and hitting enter - snews://secnews.netscape.com:563/foo
- By clicking on a pre-created link in the URL bar
- By clicking on a link in a webpage or e-mail
- Subscribe to one newsgroup
- Subscribe to several newsgroups at once
- Subscribe to all newsgroups at once
- By right-clicking on the news server and selecting "subscribe" fromthe context menu
- Password Protected
- Via the Subscribe UI
- By Copying and pasting into the URL bar and hitting enter - news://poisonivy.mcom.com:119/xrated
- By clicking on a pre-created link in the URL bar
- By clicking on a link in a webpage or e-mail
- Subscribe to one newsgroup
- Subscribe to several newsgroups at once
- Subscribe to all newsgroups at once
- By right-clicking on the news server and selecting "subscribe" fromthe context menu
Secure News on a Non-standard port
- Via the Subscribe UI
- By Copying and pasting into the URL bar and hitting enter - snews://secnews.netscape.com:254/foo
- By clicking on a pre-created link in the URL bar
- By clicking on a link in a webpage or e-mail
- Subscribe to one newsgroup
- Subscribe to several newsgroups at once
- Subscribe to all newsgroups at once
- By right-clicking on the news server and selecting "subscribe" fromthe context menu
Stress/Abnormal Conditions
- Group inaccessible (server down)
- For a URL access method, group is inaccessible
- Mail server not yet contacted in session (haven't entered password yet)
- Subscribe to several newsgroups at once
- Unsubscribe via the subscribe UI
- Unsubscribe by selecting and hitting the delete key
- Unsubscribe from several groups at once via the subscribe UI
- Unsubscribe several groups by selecting and hitting the delete key
- Interrupt a subscribe event (With multiple subscribes, this should be possible)
- Subscribe to hundreds of groups
- Unsubscribe to all groups on a single server without removing theserver.
- Methods/Tests:
- Select the news server and hit File | Subscribe. Find the groupand select it, then press the Unsubscribe button.
- Select the news group and using the context menu, select "Unsubscribe to newsgroup."
- Select newsgroup & press the delete key.
- Cancel subscribe before action completed.
-
- Unsubscribe to one newsgroup
- Unsubscribe to several newsgroups at once
- Unsubscribe to all newsgroups at once without removing the server.
- Test for various News Servers:
-
Non Secure News
- Non-Password Protected
- Select the news server and hit File | Subscribe. Find the groupand select it, then press the Unsubscribe button.
- Select the news group and using the context menu, select "Unsubscribe"
- Select newsgroup & press the delete key.
- Cancel subscribe before action completed.
- Unsubscribe to one newsgroup
- Unsubscribe to several newsgroups at once
- Unsubscribe to all newsgroups at once without removing the server.
- Password Protected
- Select the news server and hit File | Subscribe. Find the groupand select it, then press the Unsubscribe button.
- Select the news group and using the context menu, select "Unsubscribe"
- Select newsgroup & press the delete key.
- Cancel subscribe before action completed.
- Unsubscribe to one newsgroup
- Unsubscribe to several newsgroups at once
- Unsubscribe to all newsgroups at once without removing the server.
- Non-Password Protected
-
Secure News
- Non-Password Protected
- Select the news server and hit File | Subscribe. Find the groupand select it, then press the Unsubscribe button.
- Select the news group and using the context menu, select "Unsubscribe"
- Select newsgroup & press the delete key.
- Cancel subscribe before action completed.
- Unsubscribe to one newsgroup
- Unsubscribe to several newsgroups at once
- Unsubscribe to all newsgroups at once without removing the server.
- Password Protected
- Select the news server and hit File | Subscribe. Find the groupand select it, then press the Unsubscribe button.
- Select the news group and using the context menu, select "Unsubscribe"
- Select newsgroup & press the delete key.
- Cancel subscribe before action completed.
- Unsubscribe to one newsgroup
- Unsubscribe to several newsgroups at once
- Unsubscribe to all newsgroups at once without removing the server.
- Non-Password Protected
-
Secure News on a Non-standard port
- Select the news server and hit File | Subscribe. Find the groupand select it, then press the Unsubscribe button.
- Select the news group and using the context menu, select "Unsubscribe"
- Select newsgroup & press the delete key.
- Cancel subscribe before action completed.
- Unsubscribe to one newsgroup
- Unsubscribe to several newsgroups at once
- Unsubscribe to all newsgroups at once without removing the server.
-
Non Secure News
Download News Headers
- Methods/Tests:
- Download all News Headers
- Download default (500) News Headers.
- Download less than 500 News Headers.
- Download (N) amount of headers by specifiying this in the "Download 500 ___ Headers" dialog.
- Test for various News Servers:
-
Non Secure News
- Non-Password Protected
- Download all News Headers
- Download default (500) News Headers.
- Download less than 500 News Headers.
- Download (N) amount of headers by specifiying this in the "Download 500 ___ Headers" dialog.
- Non-Password Protected
-
Non Secure News
- Password Protected
- Download all News Headers
- Download default (500) News Headers.
- Download less than 500 News Headers.
- Download (N) amount of headers by specifiying this in the "Download 500 ___ Headers" dialog.
- Secure News
- Non-Password Protected
- Download all News Headers
- Download default (500) News Headers.
- Download less than 500 News Headers.
- Download (N) amount of headers by specifiying this in the "Download 500 ___ Headers" dialog.
- Password Protected
- Download all News Headers
- Download default (500) News Headers.
- Download less than 500 News Headers.
- Download (N) amount of headers by specifiying this in the "Download 500 ___ Headers" dialog.
- Secure News on a Non-standard port
- Download all News Headers
- Download default (500) News Headers.
- Download less than 500 News Headers.
- Download (N) amount of headers by specifiying this in the "Download 500 ___ Headers" dialog.
View/Read News Articles
- Methods/Tests:
- View/Read all News Articles
- View/Read default (500) News Articles
- View/Read less than 500 News Articles
- Test for various News Servers:
-
Non Secure News
- Non-Password Protected
- View/Read all News Articles
- View/Read default (500) News Articles
- View/Read less than 500 News Articles
- Password Protected
- View/Read all News Articles
- View/Read default (500) News Articles
- View/Read less than 500 News Articles
- Non-Password Protected
-
Secure News
- Non-Password Protected
- View/Read all News Articles
- View/Read default (500) News Articles
- View/Read less than 500 News Articles
- Password Protected
- View/Read all News Articles
- View/Read default (500) News Articles
- View/Read less than 500 News Articles
- Non-Password Protected
-
Secure News on a Non-standard port
- View/Read all News Articles
- View/Read default (500) News Articles
- View/Read less than 500 News Articles
-
Non Secure News
Post News Articles
- Post News Articles:
-
- Plain-text message
- HTML-formatting
- Attached vcard, signature, image and web page
- Cross-post to several groups
- Cancel a post before sending
- Post when the mail server has gone down
- An incomplete news URL -> Graceful Failure
- Post to a nonexistent group -> Graceful Failure
- Post to any server with only text in the message and nothing inthebody
- Without setting up a news server, compose a message to a newsgroup and see if you get an alert dialog.
- Test for various News Servers:
-
Non Secure News
- Non-Password Protected
- Plain-text message
- HTML-formatting
- Attached vcard, signature, image and web page
- Cross-post to several groups
- Cancel a post before sending
- Post when the mail server has gone down
- An incomplete news URL -> Graceful Failure
- Post to a nonexistent group -> Graceful Failure
- Post to any server with only text in the message and nothing inthebody
- Without setting up a news server, compose a message to a newsgroup and see if you get an alert dialog.
- Non-Password Protected
- Password Protected
- Plain-text message
- HTML-formatting
- Attached vcard, signature, image and web page
- Cross-post to several groups
- Cancel a post before sending
- Post when the mail server has gone down
- An incomplete news URL -> Graceful Failure
- Post to a nonexistent group -> Graceful Failure
- Post to any server with only text in the message and nothing inthebody
- Without setting up a news server, compose a message to a newsgroup and see if you get an alert dialog.
- Secure News
- Non-Password Protected
- Plain-text message
- HTML-formatting
- Attached vcard, signature, image and web page
- Cross-post to several groups
- Cancel a post before sending
- Post when the mail server has gone down
- An incomplete news URL -> Graceful Failure
- Post to a nonexistent group -> Graceful Failure
- Post to any server with only text in the message and nothing inthebody
- Without setting up a news server, compose a message to a newsgroup and see if you get an alert dialog.
- Password Protected
- Plain-text message
- HTML-formatting
- Attached vcard, signature, image and web page
- Cross-post to several groups
- Cancel a post before sending
- Post when the mail server has gone down
- An incomplete news URL -> Graceful Failure
- Post to a nonexistent group -> Graceful Failure
- Post to any server with only text in the message and nothing inthebody
- Without setting up a news server, compose a message to a newsgroup and see if you get an alert dialog.
- Secure News on a Non-standard port
- Plain-text message
- HTML-formatting
- Attached vcard, signature, image and web page
- Cross-post to several groups
- Cancel a post before sending
- Post when the mail server has gone down
- An incomplete news URL -> Graceful Failure
- Post to a nonexistent group -> Graceful Failure
- Post to any server with only text in the message and nothing inthebody
- Without setting up a news server, compose a message to a newsgroup and see if you get an alert dialog.
Add Servers
A. Directly through Edit/Mail | News Account Settings
B. Via URL that includes only a servername
C. Via URL that includes a servername and port
D. Via a non-existant server
E. Via a URL for pre-existant server
F. Through the Wizard that launches during client setup.
- Test for various News Servers:
- Non Secure News
-
- Non-Password Protected
A. Directly through Edit/Mail | News Account Settings
B. Via URL that includes only a servername
C. Via URL that includes a servername and port
D. Via a non-existant server
E. Via a URL for pre-existant server
F. Through the Wizard that launches during client setup. - Password Protected
A. Directly through Edit/Mail | News Account Settings
B. Via URL that includes only a servername
C. Via URL that includes a servername and port
D. Via a non-existant server
E. Via a URL for pre-existant server
F. Through the Wizard that launches during client setup.
- Non-Password Protected
- Secure News
- A. Directly through Edit/Mail | News Account Settings
B. Via URL that includes only a servername
C. Via URL that includes a servername and port
D. Via a non-existant server
E. Via a URL for pre-existant server
F. Through the Wizard that launches during client setup.- Non-Password Protected
A. Directly through Edit/Mail | News Account Settings
B. Via URL that includes only a servername
C. Via URL that includes a servername and port
D. Via a non-existant server
E. Via a URL for pre-existant server
F. Through the Wizard that launches during client setup. - Password Protected
A. Directly through Edit/Mail | News Account Settings
B. Via URL that includes only a servername
C. Via URL that includes a servername and port
D. Via a non-existant server
E. Via a URL for pre-existant server
F. Through the Wizard that launches during client setup.
- Non-Password Protected
- Secure News on a Non-standard port
- A. Directly through Edit/Mail | News Account Settings
B. Via URL that includes only a servername
C. Via URL that includes a servername and port
D. Via a non-existant server
E. Via a URL for pre-existant server
F. Through the Wizard that launches during client setup.
- Test for various News Servers:
-
Non Secure News
- Non-Password Protected
- Select either the Account Name, Server entry, or the Copies and Folderssections and press the Delete button (not key) in the lower portion of theMail/News Account Settings window.
- Password Protected
- Select either the Account Name, Server entry, or the Copies and Folderssections and press the Delete button (not key) in the lower portion of theMail/News Account Settings window.
- Non-Password Protected
-
Secure News
- Non-Password Protected
- Select either the Account Name, Server entry, or the Copies and Folderssections and press the Delete button (not key) in the lower portion of theMail/News Account Settings window.
- Password Protected
- Select either the Account Name, Server entry, or the Copies and Folderssections and press the Delete button (not key) in the lower portion of theMail/News Account Settings window.
- Secure News on a Non-standard port
Select either the Account Name, Server entry, or the Copies and Folders sections and press the Delete button (not key) in the lower portion of the Mail/News Account Settings window.
- Non-Password Protected
-
Non Secure News
Miscellaneous Server Conditions
- Add a duplicate server
- Cancel a new server addition
- Add a news server with a null name
- Provide incorrect username/password for password-protected server
- Click on a URL for a news server that has been added but notyet accessed in this session.
- Click on a URL for a news server that has been added and hasbeen accessed in this session.
- Change the default news server.
- Enter several different news servers in the same session.
- Delete several different news servers in the same session.
- Delete a news server that contains no subscribed groups.
- Delete a news server that contains a group that is currently selected.
- Delete a news server that is expanded.
Update Message Count
- Message Count :
- 0 messages and thousands messages
- Updated message count when there are 0 messages in a folder (could occur if the news server is down)
- Updated message count when there are thousands messages in a folder
- Contiguous, Non-contiguous and other method
- Select multiple, contiguous folders and update message count.
- Select multiple, noncontiguous folders and update message count. (ex: Cancel IMAP password prompt, or don't click "Get Msg" with POP, then click immediately on a group)
- Try whatever different access method are allowed by the UI
- 0 messages and thousands messages
- Test for various News Servers:
- Non Secure News
- Non-Password Protected
- Password Protected
- Secure News
- Non-Password Protected
- Password Protected
- Secure News on a Non-standard port
Cancelling a Message Post (applies to all server types).
A. Select the message and hit the Delete button thetoolbar.
B. Pull down the Edit | Cancel Message menu.
C. Right click the message and select cancel (or select the message
andhold down CONTROL on the Mac).
D: Verify that if you aren't the author of the post, that you receive
analert, "This message does not appear to be from you. You may
cancel yourpost, not those made by others".
How we handle Expired Messages (applies to allserver types).
A. Click on a message; if the message is expired,we should display the following in place of the message:
Error!
newsgroup server responded:Bad article number
Perhaps the article has expired
<91o57h$csn$1@news.panix.com> (56512)
Click here to remove all expired articles
B. That link should run this URL: "news://nospam@news/netscape.public.mozilla.mail-news?list-ids". After it is run, the currently viewed message should be deselected (the next message should load and be selected now) and no more messages expired messages should be visible.