Test Designer HTTP History Functions

<h3 id="bkmrk-_sethistory">_setHistory</h3> <p id="bkmrk-parameters%3A-valuedes">Parameters: value<br>Description: sets the history file which is a zip containing all requests.</p> <p id="bkmrk-example%3A">Example:</p> <blockquote id="bkmrk-fileclient-fs-%3D-new-"> <p><code>FileClient fs = new FileClient();</code> <br><code>fs.setHistory("test/com/appvance/ds/js/cecris/DSLog_NewPRF.zip");</code> </p> </blockquote> <h3 id="bkmrk-_replayhistory">_replayHistory</h3> <p id="bkmrk-description%3A-playbac">Description: playback the history file</p> <p id="bkmrk-example%3A-1">Example:</p> <blockquote id="bkmrk-_replayhistory%28%29%3B-_w"> <p><code>_replayHistory();</code> <br><code>_wait(2000);</code> <br><code>_navigateTo("</code>https://g-mmember-qa1.example.in/<code>");</code></p> </blockquote> <h3 id="bkmrk-_clearhistory">_clearHistory</h3> <p id="bkmrk-description%3A-clears-">Description: clears the history data</p> <p id="bkmrk-example%3A-2">Example:</p> <blockquote id="bkmrk-_clearhistory%28%29%3B-_st"> <p><code>_clearHistory();</code> <br><code>_stopHistory();</code> </p> </blockquote> <h3 id="bkmrk-_stophistory">_stopHistory</h3> <p id="bkmrk-description%3A-stops-p">Description: stops playing the history<br>Example:</p> <blockquote id="bkmrk-fileclient-fs-%3D-new--1"> <p><code>FileClient fs = new FileClient();</code> <br><code>try{</code> <br><code> fs.setHistory("test/com/appvance/ds/js/ppd/DSLog.zip");</code> <br><code> fs.replayHistory();</code> <br><code> fs.processJSFile("test/com/appvance/ds/js/ppd/getAttr.js");</code> <br><code>} finally {</code> <br><code> fs.clearHistory();</code> <br><code> fs.stopHistory();</code> <br><code>}</code> </p> </blockquote> <h3 id="bkmrk-_dontcheckforws">_dontCheckForWS </h3> <p id="bkmrk-parameters%3A-dns%2C-por">Parameters: DNS, port<br>Description: adds the domain and host to the list of domains that should not be checked for HTTPS connection.<br>Example:</p> <blockquote id="bkmrk-_dontcheckforws%28%22g-m"> <p><code>_dontCheckForWS("</code>g-mmember-qa1.copart.in<code>",443);</code><br><code>_dontCheckForWS("</code>cdn.polyfill.io<code>",443);</code><br><code>_dontCheckForWS("</code>smetrics.copart.com<code>",443);</code><br><code>_wait(10000);</code><br><code>_navigateTo("</code>https://g-mmember-qa1.copart.in/<code>");</code><br><code>_wait(1000);</code><br><code>_click(_div("AUCTIONS"));</code></p> </blockquote> <h3 id="bkmrk-_printassertions">_printAssertions </h3> <p id="bkmrk-parameters%3A-booleand">Parameters: boolean<br>Description: enables logging of assertions executed. Mainly used for debugging purposes.<br>Example:</p> <blockquote id="bkmrk-_printassertions%28tru"> <p><code>_printAssertions(true);</code> </p> </blockquote>

Revision #2
Created 2026-07-24 14:33:13 UTC by Admin
Updated 2026-11-20 17:07:20 UTC by AI_Mananger