Basic Configuration

Mark Collin edited this page Jul 6, 2016 · 18 revisions

Basic Configuration

Add the plugin to the build section of your pom.xml (Best practice is to define the version of the Maven JMeter plugin that you want to use in either your pom.xml or a parent pom.xml):


By default the plugin uses the default properties files supplied with JMeter. If you want to override any of these files you simply need to create a replacement in ${}/src/test/jmeter.

The following properties files will be used if they are found in ${}/src/test/jmeter:


The plugin will copy all of the all of the JMX test files held in the ${}/src/test/jmeter/ directory, and sub-directories, to ${}/jmeter/testFiles. Any sub-directories will be flattened and the directory path will be used to create the test filename. Tests will then be run using all of the files in ${}/jmeter/testFiles.

To run the tests open a terminal/command prompt and then type:

cd ${}
mvn verify

There are a series of configuration options available, see the advanced configuration section.