Running distributed JMeter test on Azure DevOps within build pipeline
Asked Answered
N

2

9

I need to do distributed load testing in Azure with JMeter.

I don't see how to proceed to do it:

  • Using an approach similar to this one
  • Using JMeter core distributed testing, I would need to setup 1 master and slave nodes, but I don't see how to do it in a pipeline as I would need to start multiple vms
Nixon answered 23/3, 2019 at 22:8 Comment(2)
Did you find a solution for this? I'm having the same questions/problems with load testing and azure devops.Adhesive
Hello what is the good alternative to use in Azure pipelines?Rutger
H
2

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 :

  1. https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/wiki/Basic-Configuration.
  2. https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/wiki/Remote-Server-Configuration

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.

Hosier answered 3/2, 2020 at 12:9 Comment(0)
S
0

Are you aware of Cloud-based Apache JMeter Load Test task

# Cloud-based Apache JMeter Load Test
# Runs the Apache JMeter load test in cloud
- task: ApacheJMeterLoadTest@1
  inputs:
    #connectedServiceName: # Optional
    testDrop: 
    loadTest: 'jmeter.jmx' 
    agentCount: '2' 
    #runDuration: '60' # Options: 60, 120, 180, 240, 300
    #geoLocation: 'Default' # Optional. Options: default, australia East, australia Southeast, brazil South, central India, central US, east Asia, east US 2, east US, japan East, japan West, north Central US, north Europe, south Central US, south India, southeast Asia, west Europe, west US
    #machineType: '0' # Optional. Options: 0, 2

If you want to do it all manually you can create the VMs using Azure CLI or REST API and once done you can download JMeter installation and configure it according to your test scenario.

Solarism answered 25/3, 2019 at 9:53 Comment(2)
Thanks for answer. Yes I am aware of it, but it is deprecated so I am looking for a more up to date way to do it.Nixon
Hello what is the good alternative to use in Azure pipelines?Rutger

© 2022 - 2024 — McMap. All rights reserved.