Dear All,
I have configured the simulation class in the gatling maven plugin configurations as below under the tag
<plugin>
<groupId>io.gatling</groupId>
<artifactId>gatling-maven-plugin</artifactId>
<version>${gatling-maven-plugin.version}</version>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<configFolder>src/test/resources</configFolder>
<resultsFolder>target/gatling/results</resultsFolder>
<simulationClass>src/test/java/load/tests/simulations/TestData.java</simulationClass>
<propagateSystemProperties>true</propagateSystemProperties>
</configuration>
</execution>
</executions>
</plugin>
When I try to execute the tests with command
mvn -e -Dgatling.simulationClass=load.tests.simulations.TestData
I get the below error
java.lang.ClassNotFoundException: src/test/java/load/tests/simulations/TestData.java
Wrapped by: java.lang.IllegalArgumentException: User defined Simulation class src/test/java/load/tests/simulations/TestData.java could not be loaded
:
:
Caused by: org.apache.maven.plugin.MojoExecutionException: Gatling failed.
Caused by: io.gatling.plugin.util.Fork$ForkException
Could you please take a look and guide me to resolve the issue?