如何在JMeter中使用以Selenium和Cucumber-JVM编写的测试? [英] how use tests written in Selenium and Cucumber-JVM with JMeter?

查看:109
本文介绍了如何在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?

推荐答案

我相信您可以

  1. 将测试编译为.jar文件
  2. 将.jar文件复制到JMeter类路径中

  1. Compile your tests into .jar file(s)
  2. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆