jp@gc - Chrome 驱动程序配置

jp@gc - Chrome Driver Config

我想使用 jp@gc - Chrome Driver Config 自动执行我的 JMeter 记录脚本,以便在 chrome 选项卡中执行。有什么方法可以 运行 我在 Chrome Driver Config 中记录的脚本而不使用 jp@gc - WebDriver Sampler 中的 javascript 吗?

我使用的是 Apache JMeter 3.2 版本,为了参考,我附上了我的测试计划的截图,请验证。

JMeter 作用于HTTP protocol level so it is not possible to convert recorded HTTP requests into full browser tests. You can convert existing Selenium tests into JMeter ones,但不是反方向。

您可以尝试使用基于 Selenium IDE to record your UI-based scenario, export it to Java language and use them as a basis for your WebDriver Sampler 的脚本(它支持多种语言),但是您仍然需要修改录制的脚本,因为由 Selenium IDE 生成的代码不会被 WebDriver Sampler 使用 "as is"