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

Yut*_*Lio 7 jmeter azure performance-testing jmeter-plugins azure-devops

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

我看不到如何进行:

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

Dmi*_*i T 0

您是否了解基于云的 Apache JMeter 负载测试任务

# 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
Run Code Online (Sandbox Code Playgroud)

如果您想手动完成这一切,您可以使用Azure CLIREST API创建 VM ,完成后您可以下载 JMeter 安装并根据您的测试场景进行配置

  • 感谢您的回答。是的,我知道它,但它已被弃用,所以我正在寻找一种更新的方法来做到这一点。 (5认同)