73 lines
4.8 KiB
HTML
73 lines
4.8 KiB
HTML
<html>
|
|
<head>
|
|
<title>
|
|
Description of tests on Bookmarks interface
|
|
</title>
|
|
</head>
|
|
<body bgcolor=white>
|
|
<P align=left>This document contains a simple preliminary description of
|
|
testcases on Bookmarks interface of Webclient API.</P>
|
|
|
|
<UL>
|
|
<LI><A href=#addBookmark(BookmarkEntry)>Tests on <B>addBookmark(BookmarkEntry)</B> method</A>
|
|
<LI><A href=#getBookmarks()>Tests on <B>getBookmarks()</B> method</A>
|
|
<LI><A href=#newBookmarkEntry(String)>Tests on <B>newBookmarkEntry(String)</B> method</A>
|
|
<LI><A href=#newBookmarkFolder(String)>Tests on <B>newBookmarkFolder(String)</B> method</A>
|
|
<LI><A href=#removeBookmark(BookmarkEntry)>Tests on <B>removeBookmark(BookmarkEntry)</B> method</A>
|
|
</UL>
|
|
|
|
<A name="addBookmark(BookmarkEntry)">
|
|
<H2>1. Tests on addBookmark(BookmarkEntry) method.</H2>
|
|
<table border=1>
|
|
<tr><td>Test ID</td><td>Action</td><td>Expected Result</td>
|
|
<tr><td>basic/api/History_addBookmark:0</td><td>Method addBookmark() invoked and try to add to Bookmarks new Leaf with correct String</td><td>Mozilla doesn't crashes and added one leaf to Bookmarks</td></tr>
|
|
<tr><td>basic/api/History_addBookmark:1</td><td>Method addBookmark() invoked and try to add to Bookmarks new folder with correct String</td><td>Mozilla doesn't crashes and added one folder to Bookmarks</td></tr>
|
|
<tr><td>basic/api/History_addBookmark:2</td><td>Method addBookmark() invoked and try to add to Bookmarks new Leaf with name=null</td><td>Mozilla doesn't crashes and added one leaf to Bookmarks</td></tr>
|
|
<tr><td>basic/api/History_addBookmark:3</td><td>Method addBookmark() invoked and try to add to Bookmarks new folder with name=null</td><td>Mozilla doesn't crashes and added one folder to Bookmarks</td></tr>
|
|
<tr><td>basic/api/History_addBookmark:4</td><td>Method addBookmark() invoked and try to add to Bookmarks new Leaf with name=""</td><td>Mozilla doesn't crashes and added one leaf to Bookmarks</td></tr>
|
|
<tr><td>basic/api/History_addBookmark:5</td><td>Method addBookmark() invoked and try to add to Bookmarks new folder with name=""</td><td>Mozilla doesn't crashes and added one folder to Bookmarks</td></tr>
|
|
</table>
|
|
|
|
<A name="getBookmarks()">
|
|
<H2>2. Tests on getBookmarks() method.</H2>
|
|
<table border=1>
|
|
<tr><td>Test ID</td><td>Action</td><td>Expected Result</td>
|
|
<tr><td>basic/api/History_getBookmarks:0</td><td>Method getBookmarks() invoked</td><td>Mozilla doesn't crash and getBookmarks() return correct Bookmarks</td></tr>
|
|
</table>
|
|
|
|
<A name="newBookmarkEntry(String)">
|
|
<H2>3. Tests on newBookmarkEntry(String) method.</H2>
|
|
<table border=1>
|
|
<tr><td>Test ID</td><td>Action</td><td>Expected Result</td>
|
|
<tr><td>basic/api/History_newBookmarkEntry:0</td><td>Method newBookmarkEntry(String) invoked with correct url string</td><td>Mozilla doesn't crashes and creates a new bookmark leaf with correct URL</td></tr>
|
|
<tr><td>basic/api/History_newBookmarkEntry:1</td><td>Method newBookmarkEntry(String) invoked with string == null</td><td>Mozilla doesn't crashes and creates a new bookmark leaf with URL==null</td></tr>
|
|
<tr><td>basic/api/History_newBookmarkEntry:2</td><td>Method newBookmarkEntry(String) invoked with empty url string</td><td>Mozilla doesn't crashes and creates a new bookmark leaf with empty URL</td></tr>
|
|
</table>
|
|
|
|
<A name="newBookmarkFolder(String)">
|
|
<H2>4. Tests on newBookmarkFolder(String) method.</H2>
|
|
<table border=1>
|
|
<tr><td>Test ID</td><td>Action</td><td>Expected Result</td>
|
|
<tr><td>basic/api/History_newBookmarkFolder:0</td><td>Method newBookmarkFolder(String) invoked with correctly formed string </td><td>Mozilla doesn't crashes and creates a new bookmark folder with name == string </td></tr>
|
|
<tr><td>basic/api/History_newBookmarkFolder:1</td><td>Method newBookmarkFolder(String) invoked with string == null</td><td>Mozilla doesn't crashes and creates a new bookmark folder with name == null </td></tr>
|
|
<tr><td>basic/api/History_newBookmarkFolder:2</td><td>Method newBookmarkFolder(String) invoked with empty string </td><td>Mozilla doesn't crashes and creates a new bookmark folder with name == emplty string </td></tr>
|
|
</table>
|
|
|
|
<A name="removeBookmark(BookmarkEntry)">
|
|
<H2>5. Tests on removeBookmark(BookmarkEntry) method.</H2>
|
|
<table border=1>
|
|
<tr><td>Test ID</td><td>Action</td><td>Expected Result</td>
|
|
<tr><td>basic/api/History_removeBookmark:0</td><td>Method removeBookmark(BookmarkEntry) invoked when BookmarkEntry is null</td><td>Mozilla doesn't crashes and remove leaf BookmarkEntry from Bookamarks </td></tr>
|
|
<tr><td>basic/api/History_removeBookmark:1</td><td>Method removeBookmark(BookmarkEntry) invoked when BookmarkEntry is correct entry from TreeModel</td><td>Mozilla doesn't crashes and remove folder BookmarkEntry from Bookamarks </td></tr>
|
|
<tr><td>basic/api/History_removeBookmark:2</td><td>Method removeBookmark(BookmarkEntry) invoked when BookmarkEntry is unexist in TreeModel</td><td>Mozilla doesn't crashes and remove folder BookmarkEntry from Bookamarks </td></tr>
|
|
</table>
|
|
|
|
|
|
</body>
|
|
</html>
|
|
|
|
|
|
|
|
|
|
|