edburns%acm.org 256c970b1c Automated test cases.
git-svn-id: svn://10.0.0.236/trunk@84595 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-08 21:27:40 +00:00

62 lines
3.7 KiB
HTML

<html>
<head>
<title>
Description of tests on Navigation interface
</title>
</head>
<body bgcolor=white>
<P align=left>This document contains a simple preliminary description of
testcases on Navigation interface of Webclient API.</P>
<UL>
<LI><A href=#load>Tests on <B>loadURL</B> method</A>
<LI><A href=#refresh>Tests on <B>refresh</B> method</A>
<LI><A href=#stop>Tests on <B>stop</B> method</A>
</UL>
<A name=load>
<H2>1. Tests on loadURL method.</H2>
<table border=1>
<tr><td>Test ID</td><td>Action</td><td>Expected Result</td>
<tr><td>basic/api/Navigation_loadURL_1:0</td><td>Method loadURL() invoked with null URL string</td><td>Browser doesn't crashed</td></tr>
<tr><td>basic/api/Navigation_loadURL_1:1</td><td>Method loadURL() invoked with empty URL string</td><td>Browser doesn't crashed</td></tr>
<tr><td>basic/api/Navigation_loadURL_2:0</td><td>Method loadURL() invoked when no URL loaded</td><td>Browser doesn't crashed and URL loads</td></tr>
<tr><td>basic/api/Navigation_loadURL_2:1</td><td>Method loadURL() invoked when URL is loading</td><td>Browser doesn't crashed, load process stops and another URL is loaded</td></tr>
<tr><td>basic/api/Navigation_loadURL_2:2</td><td>Method loadURL() invoked when URL is loaded</td><td>Browser doesn't crashed and another URL is loaded</td></tr>
<tr><td>basic/api/Navigation_loadURL_3:0</td><td>Method loadURL() invoked with file:/// protocol</td><td>Browser doesn't crashed and loads URL</td></tr>
<tr><td>basic/api/Navigation_loadURL_3:1</td><td>Method loadURL() invoked with http:// protocol</td><td>Browser doesn't crashed and loads URL</td></tr>
<tr><td>basic/api/Navigation_loadURL_3:2</td><td>Method loadURL() invoked with ftp:// protocol</td><td>Browser doesn't crashed and loads URL</td></tr>
<tr><td>basic/api/Navigation_loadURL_3:3</td><td>Method loadURL() invoked with bad protocol</td><td>Browser doesn't crashed</td></tr>
</table>
<A name=refresh>
<H2>2. Tests on refresh method.</H2>
<table border=1>
<tr><td>Test ID</td><td>Action</td><td>Expected Result</td>
<tr><td>basic/api/Navigation_refresh_1:0</td><td>Method refresh() invoked when no URL loaded</td><td>Browser doesn't crashed and nothing happens</td></tr>
<tr><td>basic/api/Navigation_refresh_1:1</td><td>Method refresh() invoked when URL is loading</td><td>Browser doesn't crashed, load process stops and URL reloads</td></tr>
<tr><td>basic/api/Navigation_refresh_1:2</td><td>Method refresh() invoked when URL is loaded</td><td>Browser doesn't crashed and URL reloads</td></tr>
<tr><td>basic/api/Navigation_refresh_2:0</td><td>Method refresh() invoked with value LOAD_NORMAL (=0)</td><td>Browser doesn't crashed and URL reloads</td></tr>
<tr><td>basic/api/Navigation_refresh_2:1</td><td>Method refresh() invoked with value LOAD_FORCE_RELOAD (=512)</td><td>Browser doesn't crashed and URL reloads</td></tr>
<tr><td>basic/api/Navigation_refresh_2:2</td><td>Method refresh() invoked with min long value=-9223372036854775808</td><td>Browser doesn't crashed and URL reloads</td></tr>
<tr><td>basic/api/Navigation_refresh_2:3</td><td>Method refresh() invoked with max long value=9223372036854775807</td><td>Browser doesn't crashed and URL reloads</td></tr>
</table>
<A name=stop>
<H2>3. Tests on stop method.</H2>
<table border=1>
<tr><td>Test ID</td><td>Action</td><td>Expected Result</td>
<tr><td>basic/api/Navigation_stop:0</td><td>Method stop() invoked when no URL loaded</td><td>Browser doesn't crashed and nothing happens</td></tr>
<tr><td>basic/api/Navigation_stop:1</td><td>Method stop() invoked when URL is loading</td><td>Browser doesn't crashed and load process stops</td></tr>
<tr><td>basic/api/Navigation_stop:2</td><td>Method stop() invoked when URL is loaded</td><td>Browser doesn't crashed and nothing happens</td></tr>
</table>
</body>
</html>