JMeter and build integration

We learned in a previous section that JMeter can be used to build scenarii you execute against your application. It can also be programmatically executed—it is Java-based, after all—or executed through some of its Maven integrations.

If you use its Maven plugin from lazerycode (https://github.com/jmeter-maven-plugin/jmeter-maven-plugin), you can even configure the remote mode to have real stress testing:

<plugin>  <groupId>com.lazerycode.jmeter</groupId>  <artifactId>jmeter-maven-plugin</artifactId>  <version>2.2.0</version>  <executions>    <execution>      <id>jmeter-tests</id>      <goals>        <goal>jmeter</goal>      </goals>    </execution>  </executions>  <configuration>    <remoteConfig>      <startServersBeforeTests>true</startServersBeforeTests ...

Get Java EE 8 High Performance now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.