# Test Designer HTTP history functions

<meta charset="UTF-8" id="bkmrk-"></meta><title id="bkmrk-test-designer-http-h">Test Designer HTTP history functions - Appvance Test Designer JS Commands</title><style id="bkmrk-body-%7B-font-family%3A-">
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; max-width: 900px; margin: 0 auto; padding: 20px; line-height: 1.6; }
h1 { color: #1a73e8; border-bottom: 2px solid #1a73e8; padding-bottom: 8px; }
h3 { color: #333; margin-top: 24px; }
code { background: #f0f0f0; padding: 2px 6px; border-radius: 3px; font-size: 0.9em; }
pre { background: #f5f5f5; padding: 12px; border-radius: 4px; overflow-x: auto; }
blockquote { background: #f9f9f9; border-left: 4px solid #1a73e8; margin: 12px 0; padding: 8px 16px; }
p.note { background: #fff3cd; border-left: 4px solid #ffc107; padding: 8px 16px; }
</style></head><body>### \_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);`