I am using Jmeter with Maven plugin and generating html report for the same after execution, have addded .jmx files in src/test/jmeter folder and kept csv in different one for reading params.
This is how my pom.xml looks like for build.
<build>
<plugins>
<plugin>
<groupId>com.lazerycode.jmeter</groupId>
<artifactId>jmeter-maven-plugin</artifactId>
<version>3.4.0</version>
<executions>
<!-- Generate JMeter configuration -->
<execution>
<id>configuration</id>
<goals>
<goal>configure</goal>
</goals>
</execution>
<!-- Run JMeter tests -->
<execution>
<id>jmeter-tests</id>
<goals>
<goal>jmeter</goal>
</goals>
</execution>
<!-- Fail build on errors in test -->
<execution>
<id>jmeter-check-results</id>
<goals>
<goal>results</goal>
</goals>
</execution>
</executions>
<configuration>
<propertiesUser>
<csvPath>${basedir}/src/test/resources/testData.csv</csvPath>
</propertiesUser>
<generateReports>true</generateReports>
</configuration>
</plugin>
</plugins>
</build>
I am getting result.csv properly but html report is showing data from some random execution which was 1st time for the day.
Please let me know if I am missing something here.
Thanks in advance!!!