JMeter-如何构建一个测试,该测试将启动特定数量的并发线程并重复一个小时的测试 [英] JMeter - How can I build a test that starts a specific number of concurrent threads and repeats that test for an hour

查看:178
本文介绍了JMeter-如何构建一个测试,该测试将启动特定数量的并发线程并重复一个小时的测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在JMeter中构建一个测试,该测试可以启动2个并发线程,并且还需要将测试重复一小时.

Hi I need to build a test in JMeter that starts 2 concurrent threads and I also need to repeat that test for a period of an hour

线程数:2

启动周期:0(具有并发线程)

Ramp-up Period : 0 (To have concurrent threads)

现在的问题是,如果我想重复一小时怎么办?

Now the question is , what if I want to repeat this for an hour?

推荐答案

  1. 首先提供足够的循环,甚至使您的测试永远运行.
  2. 在您的线程组中单击Scheduler框,然后键入"3600 "输入持续时间"输入.
  3. 将测试逻辑放在相同的运行时控制器下"3600"运行时值.

  1. First of all provide enough loops or even make your test to run forever.
  2. Click Scheduler box in your Thread Group and type "3600" into "Duration" input.
  3. Put your test logic under Runtime Controller with the same "3600" runtime value.

通过JMeter插件可以使用最终线程组定义负载方案的方式.

There is an Ultimate Thread Group available through JMeter Plugins which provides convenient way of defining load scenario.

在升级中使用零不能保证2个(或其他)并发用户,以确保负载不小于2,我建议使用

Using zero in Ramp-up doesn't guarantee 2 (or whatever) concurrent users, to assure that the load will be no less than 2 I would recommend using Constant Throughput Timer.

这篇关于JMeter-如何构建一个测试,该测试将启动特定数量的并发线程并重复一个小时的测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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