Jmeter之步进线程组stepping thread group的使用

这篇文章主要介绍jmeter的步进线程组stepping thread group的引用、使用详情,适合性能测试新手。

jmeter安装步进线程组

1、插件下载地址:https://jmeter-plugins.org/downloads/old/
需下载的插件
2、下载插件后,解压,并将.jar 文件放在jmeter 文件夹下面的lib/ext :
在这里插入图片描述
3、重启jmeter 可以看到对应的插件
在这里插入图片描述

步进线程组的使用

操作:测试计划->添加->线程(用户)->jp@gc-Stepping thread group

参数解析:

  • action to be taken after a sampler error:取样器失败之后采取的行为(默认是continue)

    • continue:忽略错误,继续执行
    • start next thread loop:开始下一轮线程循环
    • stop thread:终止线程运行
    • stop test:终止测试
    • stop test now:立即终止测试
  • thread scheduling parameters:线程调度参数

    • this group will start 300 threads:这个线程组最大将启动300个线程
    • first,wait for 60 seconds:启动之前,首先等待60秒
    • then start 50 threads:开始启动50个线程(初始并发数为50)
    • next,add 10 threads every 30 seconds,using ramp-up 5 seconds:每隔30秒,在5秒内启动10个线程
    • then hold load for 180 seconds:增加到最大线程数后,保持运行180秒(稳定性测试)
    • finally, stop 50 thread every 1 seconds: 每间隔1秒终止50个线程

下方就是并发数曲线图:
在这里插入图片描述

  • 1
    点赞
  • 15
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值