使用 watir 将来自 google Analytics 的测试请求列入黑名单

发布于 2024-09-01 10:31:33 字数 182 浏览 3 评论 0原文

我必须对运行谷歌分析脚本的网络应用程序进行自动化测试。我选择了 watir 进行自动化,因为我可以使用相同的脚本编写所有测试用例。唯一的问题是我不知道如何从谷歌分析报告中删除对网络应用程序的测试请求。谁能帮我做同样的事情吗?可以用 watir 做到这一点吗?如果不是 watir,还有其他我可以使用的网络自动化工具吗?

〜感谢和问候

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 could use?

~Thanks and Regarads

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

爱已欠费 2024-09-08 10:31:33

使用主机文件将谷歌分析请求发送到另一台服务器可能是更好的方法

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

想你的星星会说话 2024-09-08 10:31:33
  1. 在 Watir 驱动的浏览器中禁用 JavaScript,这样就不会执行 Google 分析代码,
  2. 您可以过滤掉 Watir 发出的请求,我确信 Google 分析中有一种方法可以过滤掉特定 IP 或类似的内容
  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
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文