For TruClient IE script in LR 12.01, how can I verify that the filter (Utils.addAutoFilter) is working?
Question ID: 105925
0
0
Marked as spam
Posted by (Questions: 231, Answers: 18)
Asked on January 31, 2015 7:43 pm
89 views
Answers (1)
1
Private answer

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.

Marked as spam
Posted by (Questions: 12, Answers: 384)
Answered on January 31, 2015 7:47 pm
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top