I want to run a jmeter script using IntelliJ and Maven. Basicaly my goal is to run a jmeter script thru Jenkins. I did following steps:
- Downloaded Jmeter source code and extracted all files under C:\Jmeter\apache-jmeter-3.3
- Created a script by launching jmeter using jmeter.bat
Saved the script under C:\Jmeter\apache-jmeter-3.3\bin\templates\create-client.jmx
Created a new Maven Project in IntelliJ under new folder C:\Jmeter-test
- Copied report-template, reportgenerator.properties under src/test/resources
Copied create-client.jmx under src/test/jmeter/create-client.jmx
Modifiled pom.xml to include Jmeter plugin
<plugins> <plugin> <groupId>com.lazerycode.jmeter</groupId> <artifactId>jmeter-maven-plugin</artifactId> <version>1.6.1</version> <executions> <execution> <id>jmeter-tests</id> <goals> <goal>jmeter</goal> </goals> </execution> </executions> <configuration> <testFilesIncluded> <jMeterTestFile>create-client.jmx</jMeterTestFile> </testFilesIncluded> </configuration> </plugin>
When i run mvn verify command, it sayd 'No Tests to Run'. I am not very familiar with IntelliJ and Maven. Not sure if i need to import existing Jmeter souce code.Any help would be appreaciated. Thanks!