gpt4 book ai didi

azure - 在构建管道中的 Azure DevOps 上运行分布式 JMeter 测试

转载 作者:行者123 更新时间:2023-12-02 15:44:28 25 4
gpt4 key购买 nike

我需要使用 JMeter 在 Azure 中进行分布式负载测试。

我不知道如何继续执行此操作:

  • 使用与此类似的方法 one
  • 使用 JMeter 核心分布式测试,我需要设置 1 个主节点和从节点,但我不知道如何在管道中执行此操作,因为我需要启动多个虚拟机

最佳答案

在 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>

更多信息请参见此处:

  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

我已经使用这个插件一年了,它拥有令人惊叹的支持。

我正在使用Terraform用于使用 shell 脚本启动/销毁管道中的新 VM。

关于azure - 在构建管道中的 Azure DevOps 上运行分布式 JMeter 测试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55318835/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com