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.


Networking (general) Test Plan

Abstract:
This document provides general network functional testing. The test area covers essential networking functions, and can be considered a "smoketest" of networking functionality.Full functional testing should be done on a per-protocol basis.

This document is written for testing mozilla-based products, but has been structured so other browsers can be easily tested.
Results can be summarized in the results template.

Overview:
The majority of the tests are link-clicks. The results include numerous dialog boxes, so automation is not possible.

Previously, tests and results were integrated. As of Mozilla 1.3b, test results can be recorded in a template, to provide better summarization.

RFC-based schemes

Scheme Description Expected Behavior:
mailto: mailto: Mozilla: MailNews module should open
Phoenix/Chimera/Mozilla:browser-only): default OS mailer should launch
gopher: gopher server
gopher page appears in HTML view
telnet: telnet://hostname launch default OS TELNET application
wais: wais://something.com/searching?forthis Error: "wais is not a registered protocol"
data: data: URL page that says: "A brief note"
other invalid:// Error: "invalid is not a registered protocol"

Commonly supported schemes

aim: Send IM (default) launch default OS Instant Messaging application

javascript: javascript:alert("pass") Display alert dialog "pass"

Mozilla-only schemes

about: about:
about: page about:blank
chrome: chrome://navigator/content/navigator.xul Display Navigator window in window
keyword:
keyword:mozilla
keyword:open source
Display search results from keyword server
resource: resource:/// Display application directory
view-source:
view-source:about:blank
Displays:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title></title></head><body></body></html>
The non-links must be pasted into URL bar.

 
DNS

DNS hostnames starts with numbers
Should work
FQDN max length
maximum label size: 63 characters Should work
Non-existent host/domain
nonexistent FQDN Error: "hostname not found"
multiple DNS records multiple DNS records various connection failures should cause connection attempts to alternate addresses
non-responsive DNS server
(configure client to use unavailable DNS server)
DNS request timeout -or- DNS server unavailable
"localhost"
http://localhost/ /etc/hosts and/or DNS should resolve to 127.0.0.1

 IP addressing, ports and sockets

dotted quad
mozilla.org's IP address mozilla.org
single int
http://3486011863 mozilla.org - using illegal syntax
incomplete quads
http://127.1/ loopback - using illegal syntax
limited broadcast
http://255.255.255.255/ TCP connections cannot be made to non-unicast addresses
blocked port
localhost, blocked port
Error: "port blocked for security reasons"
unused port
localhost: unused port Error: "connection refused"
connection establishment timeout
currently unused address
Error: "timeout"

Relative URLs
Use Roy Fielding's test page need comparison chart

Suggestions, questions, feedback, bug 141758

To Do:
Needs more consideration for testing w/ non-standard installs (browser-only, non Mozilla trunk products, etc.)

Last update:
02.18.03 - updated for Mozilla 1.3b