如何通过 JMeter 使用用 Selenium 和 Cucumber-JVM 编写的测试? [英] how use tests written in Selenium and Cucumber-JVM with JMeter?
本文介绍了如何通过 JMeter 使用用 Selenium 和 Cucumber-JVM 编写的测试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一组用 Selenium 和 Cucumber-JVM 编写的功能测试,我使用 maven 通过 Cucumber 标签运行它们.
I have set of functional tests written in Selenium and Cucumber-JVM, I use maven to run them by Cucumber tags.
现在我需要使用 JMeter 中的一些测试来检查性能.我该怎么做?
Now I need to use some of those tests with JMeter to check performance. How can I do it?
推荐答案
我相信你可以的
- 将您的测试编译成 .jar 文件
将 .jar 文件复制到 JMeter 类路径中
- Compile your tests into .jar file(s)
Copy the .jar file(s) into JMeter classpath
- 测试文件 - 在 JMeter 安装的/lib/junit 文件夹下
- 依赖文件 -/lib 文件夹下
有关使用 JUnit 的详细信息,请参阅如何将 JUnit 与 JMeter 一起使用指南从 JMeter 的角度进行测试.
See How to Use JUnit With JMeter guide for details on working with JUnit tests from JMeter perspective.
这篇关于如何通过 JMeter 使用用 Selenium 和 Cucumber-JVM 编写的测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文