用于负载测试 (Jmeter) 的 Specflow(黄瓜)

Specflow (cucumber) for Load Test (Jmeter)

有没有办法从 .feature 文件创建 JMeter 负载测试计划?我一直在四处寻找,但没有找到任何现有框架或使用现有 specflow 的功能文件创建 JMX 文件的方法。

我认为目前不支持此功能。

如果您对 运行 Selenium tests (or your tests use HTTP/HTTPS protocol(s) you can configure your WebDriver initialization to use JMeter's HTTP(S) Test Script Recorder as a proxy for Selenium WebDriver instances so when you run your Specflow/Cucumber test JMeter will capture the requests coming from browsers and convert them into HTTP Request 个采样器使用 Specflow/Cucumber。

通过这种方式,您将能够根据现有的功能测试构建 JMeter 测试计划,并使用 increased number of users. See How to Convert Selenium Scripts into the JMX Converter 重播它以获取更多详细信息。


作为替代方案,您可以考虑使用 Ruby-JMeter DSL or Taurus 工具,该工具允许以声明方式创建 JMeter 测试。