Cucumber:测试辅助请求或响应标头
使用 Cuke 测试通过 selenium 驱动程序运行的 java web 应用程序。加载时,页面会发出一些用于跟踪目的的外部请求(omniture、doubleclick)。我将如何检查浏览器发出的请求,以便我可以验证浏览器在页面加载期间是否请求了以下 URL?
http://doubleclick.net/<whatever>
Using Cuke to test java web app running through selenium driver. On load the page makes some external requests for tracking purposes (omniture, doubleclick). How would I go about inspecting the requests that the browser makes so that I could verify for example that the following URL was requested by the browser during page load?
http://doubleclick.net/<whatever>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您现在可能已经想出了不同(或相同)的解决方案...我正在通过向我的网络应用程序发送各种请求并存储这些请求来测试我的报告库,然后在我的黄瓜测试中进行检查。
You may have come up with a different (or the same) solution by now... I am testing my reporting library by sending the various requests to my web application and storing those requests to then inspect in my cucumber tests.