how use tests written in Selenium and Cucumber-JVM with JMeter?

随声附和 提交于 2019-12-06 16:14:57

I believe that you can just

  1. Compile your tests into .jar file(s)
  2. Copy the .jar file(s) into JMeter classpath

    • tests files - under /lib/junit folder of your JMeter installation
    • dependency files - under /lib folder
  3. Add JUnit Request Sampler and choose required test from "Classname" and "Test Method" dropdowns
  4. Configure JMeter as per your load scenario and run the test

See How to Use JUnit With JMeter guide for details on working with JUnit tests from JMeter perspective.

You can use JMeter sampler called BSF Sampler. This one allows to execute java class from JMeter. Please choose beanshell in the scripting language field.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!