Events JMeter Maven Plugin

A plugin to allow you to run Apache JMeter tests with Maven. Forked from jmeter-maven-plugin 3.1.2, this version has test events integration.

License

License

Categories

Categories

Maven Build Tools JMeter Application Testing & Monitoring
GroupId

GroupId

nl.stokpop
ArtifactId

ArtifactId

events-jmeter-maven-plugin
Last Version

Last Version

3.1.2-events-2
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

Events JMeter Maven Plugin
A plugin to allow you to run Apache JMeter tests with Maven. Forked from jmeter-maven-plugin 3.1.2, this version has test events integration.
Project URL

Project URL

https://jmeter.lazerycode.com
Source Code Management

Source Code Management

https://github.com/stokpop/events-jmeter-maven-plugin

Download events-jmeter-maven-plugin

How to add to project

<plugin>
    <groupId>nl.stokpop</groupId>
    <artifactId>events-jmeter-maven-plugin</artifactId>
    <version>3.1.2-events-2</version>
</plugin>

Dependencies

compile (13)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 3.5.2
org.apache.maven : maven-core jar 3.5.2
org.apache.maven.resolver : maven-resolver-api jar 1.4.2
commons-io : commons-io jar 2.6
com.fasterxml.jackson.core : jackson-core jar 2.11.0
com.fasterxml.jackson.core : jackson-databind jar 2.11.0
com.fasterxml.jackson.core : jackson-annotations jar 2.11.0
com.fasterxml.jackson.dataformat : jackson-dataformat-csv jar 2.11.0
com.jayway.jsonpath : json-path jar 2.4.0
nl.stokpop : event-scheduler jar 2.2.2
org.slf4j : slf4j-api jar 1.7.30
ch.qos.logback : logback-core jar 1.2.3
ch.qos.logback : logback-classic jar 1.2.3

provided (1)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.5.2

test (3)

Group / Artifact Type Version
junit : junit jar 4.13.1
org.assertj : assertj-core jar 3.15.0
org.mockito : mockito-core jar 2.28.2

Project Modules

There are no modules declared in this project.

JMeter Maven Plugin

License Build Status codecov

GitHub release Maven Central Javadocs JitPack

Stack Overflow Open Source Helpers Twitter

A Maven plugin that provides the ability to run JMeter tests as part of your build

See the CHANGELOG for change information.

All the documentation you need to configure the plugin is available on the Github Wiki.

The latest version is 3.1.2, it requires Maven >= 3.5.2 and defaults to Apache JMeter 5.2.1.

This plugin requires a JDK between 8 and 11. If using Java 11, ensure you use recent version to avoid facing this Bug, also read This.

Running the GUI

Once you have added the plugin to your project you will be able to invoke the JMeter GUI using the following command:

mvn jmeter:configure jmeter:gui

If you want to preload a test, you can specify it on the command line:

mvn jmeter:configure jmeter:gui -DguiTestFile=src/test/jmeter/test.jmx

If you haven't added the plugin to your project you can still invoke it (provided you have a valid pom.xml in your project) by using the following:

mvn com.lazerycode.jmeter:jmeter-maven-plugin:configure com.lazerycode.jmeter:jmeter-maven-plugin:gui

Basic Usage

Add the plugin to your project

Add the plugin to the build section of your pom's project :

<plugin>
    <groupId>com.lazerycode.jmeter</groupId>
    <artifactId>jmeter-maven-plugin</artifactId>
    <version>3.1.2</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>
</plugin>

Reference JMX files and CSV data

Once you have created your JMeter tests, you'll need to copy them to <Project Dir>/src/test/jmeter.
By default this plugin will pick up all the .jmx files in that directory, you can also put data files in this folder and reference them in your plan. To specify which tests should be run, see the Selecting-Tests-To-Run section of the Wiki.

Run the tests

mvn clean verify

All your tests will run in maven!

Documentation

All the plugin configuration documentation is available on the Github Wiki.

Beginners should start with the Basic Configuration section.

For advanced POM configuration settings have a look at the Advanced Configuration section.

Tutorials

Support

If you'd like to help support the maintainers you can donate using the sponsorship button at the top of the page, or you can purchase this book:

Want to help

Have a look at our list of outstanding issues:

Community

Users Group

A place to discuss usage of the maven-jmeter-plugin, let people know how you use it here.

Homepage: http://groups.google.com/group/maven-jmeter-plugin-users

Group Email: [email protected]

Devs Group

A place to discuss the development of the maven-jmeter-plugin, or ask about features you would like to see added.

Homepage: http://groups.google.com/group/maven-jmeter-plugin-devs

Group Email: [email protected]

Website

The official website is available at https://jmeter.lazerycode.com

We love it when people Contribute!

Versions

Version
3.1.2-events-2
3.1.2-events-1