在 JMeter 代理服务器中排除 Selenium 服务器 URL

发布于 2024-09-12 03:46:01 字数 335 浏览 3 评论 0原文

我目前正在尝试让 JMeter 记录我的硒测试步骤,以便我可以使用相同的测试执行负载测试。这些步骤记录得很好,但我的问题是它还记录了“selenium-server”窗口中执行的步骤(即当 selenium 运行时弹出的额外窗口)。

我相信,如果我将诸如 *selenium-server* 之类的内容添加到“要排除的 URL 模式”列表中,那么它将忽略所有这些步骤,但它们会继续记录我尝试过的每个模式。

有人可以告诉我导致这些步骤被忽略的模式吗?
示例 URL 为:/selenium-server/driver/?retry=true

谢谢。

I'm currently trying to get JMeter to record the steps my selenium tests so I can perform load testing with the same tests. The steps are recorded fine but my problem is that its also recording the steps performed in the "selenium-server" window (i.e. the extra windows that pop up when selenium runs).

I believe if I add something like *selenium-server* to the "URL Patterns to Exclude" List then it will ignore all these steps but they keep recording for every pattern I've tried.

Can someone please tell me the pattern which will lead to these steps getting ignore?
An example url is: /selenium-server/driver/?retry=true.

Thanks.

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

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

发布评论

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

评论(3

心如狂蝶 2024-09-19 03:46:01

尝试将以下内容添加到“要排除的 URL 模式”中

^/selenium-server/.*

Try adding the following to 'URL Patterns to Exclude'

^/selenium-server/.*
醉梦枕江山 2024-09-19 03:46:01

如果您尝试使用 Selenium 测试来生成负载,您可能还需要查看 BrowserMob。这是我创办的一家公司,在云中集体运行实际的 Selenium 浏览器。

If you're trying to use your Selenium tests to generate load, you might also want to look at BrowserMob. It's a company I started that runs actual Selenium browsers en masse in the cloud.

小猫一只 2024-09-19 03:46:01

您可以尝试将以下内容添加到“要排除的 URL 模式”中

.*/selenium-server/.*

You could try to add the following to 'URL Patterns to Exclude'

.*/selenium-server/.*
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文