I need to do distributed load testing in Azure with JMeter.
I don't see how to proceed to do it:
In your pipeline, in the JMeter tool installer task, under plugins, enter jmeter. backendlistener. azure in order to install the plugin on the build agent as well. Create an Azure Application Insights resource and copy the Instrumentation Key.
file from azure devops. Runs build.sh, which spins the container running Jmeter. Runs Junit_Converter.py, which converts the jtl result file into Junit report which can be uploaded and rendered within azure devops.
Distributed testing enables having a local JMeter (master) that handles the test execution, together with multiple remote JMeter instances (slaves) that will send the request to our target server. But before being able to run JMeter in a distributed way, there are a couple of simple steps you must perform.
One of the best ways to use JMeter in Azure pipelines is configuring your performance test cases as a maven project. As a result you don't need to use the deprecated Cloud-based Apache JMeter Load Test task.
There is an existing plugin that helps you with this:
<plugins>
<plugin>
<groupId>com.lazerycode.jmeter</groupId>
<artifactId>jmeter-maven-plugin</artifactId>
<version>2.9.0</version>
<executions>
<execution>
<id>jmeter-tests</id>
<phase>verify</phase>
<goals>
<goal>jmeter</goal>
</goals>
</execution>
</executions>
<configuration>
<resultsFileFormat>xml</resultsFileFormat>
<propertiesUser>
<hostname>${test.hostname}</hostname>
<env>${test.env}</env>
</propertiesUser>
</configuration>
</plugin>
</plugins>
More information is available here :
I have been working with this plugin for a year now and it has amazing support.
I am using Terraform for starting /destroying the new VM machines in the pipeline using shell scripts.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With