1

I have set of functional tests written in Selenium and Cucumber-JVM, I use maven to run them by Cucumber tags.

Now I need to use some of those tests with JMeter to check performance. How can I do it?

2 Answers 2

1

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.

Sign up to request clarification or add additional context in comments.

Comments

0

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.