开发者

blacklist test requests from google analytics using watir

开发者 https://www.devze.com 2022-12-30 06:56 出处:网络
I have toautomate tests for a web application which runs google analytics script. I have chosen watir for the automation since I can script all the test cases with the same. The only problem is i dont

I have to automate tests for a web application which runs google analytics script. I have chosen watir for the automation since I can script all the test cases with the same. The only problem is i dont know how to remove my test requests to the web apps from the google analytics report. Can anyone help me with the same? Is it possible to do that with watir? If not watir, is there any other web automation tool which I c开发者_如何学Could use?

~Thanks and Regarads


using your hosts file to send the google analytics requests to another server is probably a better way


  1. disable JavaScript in the browser that Watir drives, that will not execute Google analytics code
  2. you can filter out requests that Watir made, I am sure there is a way in Google analytics to filter out specific IP or something similar
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号