Loadtests are successful but reports are not generated at the end.
Could you please assist in resolving the dependencies with java api?
Here is the error message
Parsing log file(s) done
Generating reports...
Exception in thread "main" java.lang.NoClassDefFoundError: io/gatling/charts/component/impl/ComponentLibraryImpl
at io.gatling.charts.component.ComponentLibrary$.<clinit>(ComponentLibrary.scala:43)
at io.gatling.charts.report.ReportsGenerator.generateFor(ReportsGenerator.scala:51)
at io.gatling.app.RunResultProcessor.generateReports(RunResultProcessor.scala:65)
at io.gatling.app.RunResultProcessor.processRunResult(RunResultProcessor.scala:40)
at io.gatling.app.Gatling$.start(Gatling.scala:100)
at io.gatling.app.Gatling$.fromArgs(Gatling.scala:52)
at io.gatling.app.Gatling$.main(Gatling.scala:40)
at io.gatling.app.Gatling.main(Gatling.scala)
Caused by: java.lang.ClassNotFoundException: io.gatling.charts.component.impl.ComponentLibraryImpl
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
... 8 more
Generating reports...
Exception in thread "main" java.lang.UnsupportedOperationException: There were no requests sent during the simulation, reports won't be generated
at io.gatling.charts.report.ReportsGenerator.generateFor(ReportsGenerator.scala:47)
at io.gatling.app.RunResultProcessor.generateReports(RunResultProcessor.scala:65)
at io.gatling.app.RunResultProcessor.processRunResult(RunResultProcessor.scala:40)
at io.gatling.app.Gatling$.start(Gatling.scala:100)
at io.gatling.app.Gatling$.fromArgs(Gatling.scala:52)
at io.gatling.app.Gatling$.main(Gatling.scala:40)
at io.gatling.app.Gatling.main(Gatling.scala)
There were no requests sent during the simulation, reports won't be generated
What does your Simulation like? Does it contain at least one scenario? Does this scenario contain at least one request (http("your.website.com").get("/"))?
Hi @sbrevet
My simulations are working fine when I execute locally. I have been using gatling since 2019 with scala api.
Now I am trying to develop loadtest framework with java api.
Report generation is failing when I execute the tests in the cluster(containerised execution)
I can see the tests results in the console out put as below
This thread is non sensical.
The title is about not being able to launch from the gatling-maven-plugin, then you’re saying you’re building a fatjar and launching directly a java -cp command, which is not a usage we support.
And then you’re reporting an error that happens when your scenario is empty.
Please stick to using the gatling-maven-plugin and launching mvn gatling:test.