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

问题描述 投票:4回答:1

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

我不知道如何继续这样做:

  • 使用类似于这个one的方法
  • 使用JMeter核心分布式测试,我需要设置1个主节点和从节点,但我不知道如何在管道中执行它,因为我需要启动多个vms
azure jmeter azure-devops performance-testing jmeter-plugins
1个回答
0
投票

你知道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

如果你想手动完成所有操作,你可以使用Azure CLIREST API创建虚拟机,一旦完成,你可以下载JMeter安装和configure it according to your test scenario

© www.soinside.com 2019 - 2024. All rights reserved.