Open shsharm opened 4 years ago
I have no experience with JMeter so unfortunately I can't help you fix the problem.
Error:
Error -- runTest(org.apache.jmeter.protocol.java.sampler.JUnitSampler$AnnotatedTestCase): io/cucumber/plugin/SummaryPrinter
Trace -- java.lang.NoClassDefFoundError: io/cucumber/plugin/SummaryPrinter
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
at java.base/java.net.URLClassLoader.defineClass(URLClassLoader.java:550)
at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:458)
at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:452)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:451)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
at io.cucumber.core.options.PluginOption$1.
Hi,
I have a piece of Cucumber + JUNIT + Selenium WebDriver code to be used in JMeter for load testing. Following is the piece of code:
package runner; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.junit.Test; import cucumber.api.cli.Main; import pageobjects.alinea.AssetsMetadataPage;
public class TestRunner{ private static Logger Log = LogManager.getLogger(AssetsMetadataPage.class);
public void runTest() throws Throwable {
try {
}
This is the feature file: @upload Scenario: User upload the image Given navigate to folder and upload a picture
and imported these jar into the lib folder of jmeter: cobertura-1.8.jar mockito-core-3.5.5.jar cucumber-core-5.7.0.jar cucumber-java-5.7.0.jar cucumber-junit-5.7.0.jar cucumber-jvm-deps-1.0.6.jar gherkin-15.0.2.jar selenium-server-standalone-2.53.0.jar
When I try to run from Eclipse, there's no issue, the execution is completed without any glitch. But when i run this from jmeter getting below error: Error -- runTest(org.apache.jmeter.protocol.java.sampler.JUnitSampler$AnnotatedTestCase): Could not initialize class io.cucumber.core.options.PluginOption
Am I missing something to add in jmeter for Cucumber options? Thanks in advance for your answers!