如何在 JMeter 中模拟每分钟请求数 [英] How to simulate requests per minute in JMeter

查看:31
本文介绍了如何在 JMeter 中模拟每分钟请求数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要模拟每分钟n"个请求.我正在对 5 个不同的 web 服务进行负载测试,每个服务都应该用每分钟不同的n"个请求进行模拟.哪种方式最好?我必须使用计时器吗?我可以将计时器附加到采样器还是应该只附加到线程组?

I need to simulate 'n' number of request per minute. I am load testing 5 different webservices each of which should be simulated with different 'n' requests per minute. Which is the best way?. Do I have to use timers?. Can I attach a timer to a Sampler or should it be attached to a thread group only?.

推荐答案

添加线程组的恒定吞吐量计时器.

如果您想为每个 Web 服务设置每分钟的 req 单独值,您可以创建 5 个线程组和 5 个计时器.在一个测试计划中运行所有这些

If you want separate value of req per minute for each web service, you can create 5 thread groups with 5 timers. Run all of them in one Test Plan

资源:

http://www.davegardner.me.uk/blog/2010/09/23/effective-load-testing-with-apache-jmeter/#constant-throughput-timer

这篇关于如何在 JMeter 中模拟每分钟请求数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆