To verify the code:
Utils.cleanupAutoFilters();
Utils.addAutoFilter(''http://www.yoursite.com/*'', true);
Utils.addAutoFilter(''https://www.yoursite.com/*'', true);
1. Enabled the log setting in RTS-->Log-->Extended log-->HTTP-related messages (1st four checkboxes checked)
2. Disabled the ''Evaluate JavaScript'' step
3. Replayed the script in the develop mode to make sure it is still working
4. Saved the script and Closed the Develop mode
5. Replayed the in the VuGen (Load mode)
6. Searched the output log for ''Request headers for'', made a list of all sites
7. Searched the output log for ''Request body for'', made a list of all sites
a. for example these site are called:
i. https://www.yoursite.com
ii. http://www.yoursite.com
iii. http://www.facebook.com
iv. https://www.linkedin.com
8. Then in the develop mode we enabled the ''Evaluate JavaScript'' step
9. Verified the code was set to ... ,true);
10. Replayed the script
11. Saved the script and closed the develop mode
12. Replayed the script in the load mode
13. Repeated Searched the output log for ''Request headers for'' and ''Request body for''. you should did not find any for:
a. http://www.facebook.com
b. https://www.linkedin.com
Thus proving that the ''Utils.addAutoFilter...'' code works.