Skip to main content

Test Designer HTTP history functions

_setHistory

Parameters: value
Description: sets the history file which is a zip containing all requests.

Example:

FileClient fs = new FileClient();
fs.setHistory("test/com/appvance/ds/js/cecris/DSLog_NewPRF.zip");

_replayHistory

Description: playback the history file

Example:

_replayHistory();
_wait(2000);
_navigateTo("https://g-mmember-qa1.example.in/");

_clearHistory

Description: clears the history data

Example:

_clearHistory();
_stopHistory();

_stopHistory

Description: stops playing the history
Example:

FileClient fs = new FileClient();
try{
fs.setHistory("test/com/appvance/ds/js/ppd/DSLog.zip");
fs.replayHistory();
fs.processJSFile("test/com/appvance/ds/js/ppd/getAttr.js");
} finally {
fs.clearHistory();
fs.stopHistory();
}

_dontCheckForWS

Parameters: DNS, port
Description: adds the domain and host to the list of domains that should not be checked for HTTPS connection.
Example:

_dontCheckForWS("g-mmember-qa1.copart.in",443);
_dontCheckForWS("cdn.polyfill.io",443);
_dontCheckForWS("smetrics.copart.com",443);
_wait(10000);
_navigateTo("https://g-mmember-qa1.copart.in/");
_wait(1000);
_click(_div("AUCTIONS"));

_printAssertions

Parameters: boolean
Description: enables logging of assertions executed. Mainly used for debugging purposes.
Example:

_printAssertions(true);