我需要用JMeter在Azure中进行分布式负载测试。
我看不出该怎么做:
发布于 2020-02-03 12:09:39
在Azure管道中使用JMeter的最佳方法之一是将性能测试用例配置为maven项目。因此,您不需要使用不推荐的基于云的Apache JMeter负载测试任务。
有一个现有的插件可以帮助您完成以下工作:
<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>更多信息可在此查阅:
我已经使用这个插件一年了,它得到了惊人的支持。
我使用Terraform启动/destroying,使用/destroying脚本启动管道中的新VM机器。
发布于 2019-03-25 09:53:22
# 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如果您想手动完成所有操作,可以使用Azure CLI或REST API创建VM,完成后可以下载JMeter安装和根据您的测试场景配置它。
https://stackoverflow.com/questions/55318835
复制相似问题