This document contains a simple preliminary description of testcases on Navigation interface of Webclient API.

1. Tests on loadURL method.

Test IDActionExpected Result
basic/api/Navigation_loadURL_1:0Method loadURL() invoked with null URL stringBrowser doesn't crashed
basic/api/Navigation_loadURL_1:1Method loadURL() invoked with empty URL stringBrowser doesn't crashed
basic/api/Navigation_loadURL_2:0Method loadURL() invoked when no URL loadedBrowser doesn't crashed and URL loads
basic/api/Navigation_loadURL_2:1Method loadURL() invoked when URL is loadingBrowser doesn't crashed, load process stops and another URL is loaded
basic/api/Navigation_loadURL_2:2Method loadURL() invoked when URL is loadedBrowser doesn't crashed and another URL is loaded
basic/api/Navigation_loadURL_3:0Method loadURL() invoked with file:/// protocolBrowser doesn't crashed and loads URL
basic/api/Navigation_loadURL_3:1Method loadURL() invoked with http:// protocolBrowser doesn't crashed and loads URL
basic/api/Navigation_loadURL_3:2Method loadURL() invoked with ftp:// protocolBrowser doesn't crashed and loads URL
basic/api/Navigation_loadURL_3:3Method loadURL() invoked with bad protocolBrowser doesn't crashed

2. Tests on refresh method.

Test IDActionExpected Result
basic/api/Navigation_refresh_1:0Method refresh() invoked when no URL loadedBrowser doesn't crashed and nothing happens
basic/api/Navigation_refresh_1:1Method refresh() invoked when URL is loadingBrowser doesn't crashed, load process stops and URL reloads
basic/api/Navigation_refresh_1:2Method refresh() invoked when URL is loadedBrowser doesn't crashed and URL reloads
basic/api/Navigation_refresh_2:0Method refresh() invoked with value LOAD_NORMAL (=0)Browser doesn't crashed and URL reloads
basic/api/Navigation_refresh_2:1Method refresh() invoked with value LOAD_FORCE_RELOAD (=512)Browser doesn't crashed and URL reloads
basic/api/Navigation_refresh_2:2Method refresh() invoked with min long value=-9223372036854775808Browser doesn't crashed and URL reloads
basic/api/Navigation_refresh_2:3Method refresh() invoked with max long value=9223372036854775807Browser doesn't crashed and URL reloads

3. Tests on stop method.

Test IDActionExpected Result
basic/api/Navigation_stop:0Method stop() invoked when no URL loadedBrowser doesn't crashed and nothing happens
basic/api/Navigation_stop:1Method stop() invoked when URL is loadingBrowser doesn't crashed and load process stops
basic/api/Navigation_stop:2Method stop() invoked when URL is loadedBrowser doesn't crashed and nothing happens