我如何在Blazemeter/JMeter中为每个线程组单独指定不同数量的用户?

huangapple go评论54阅读模式
英文:

How can I specify a different number of users for each thread group individually on Blazemeter/JMeter?

问题

在JMeter中,我有几个线程组。我想在Blazemeter中运行测试。在Blazemeter中运行时,如何为每个线程组设置不同数量的用户?

似乎没有选项可以更改每个线程组的用户数量。我只能指定将用于每个线程组的用户数量。也就是说,如果我有2个线程组,并在Blazemeter上指定了47个用户,那么一个线程组将有47个用户,另一个线程组也将有47个用户。

是否有选项可以为每个线程组单独指定配置?

英文:

I have a few thread groups in JMeter. I want to run the test in Blazemeter. How can I have a different number of users for each thread group when running in Blazemeter?

It seems there is no option to change the number of users for every thread group. I can only specify the number of users which will be used for every thread group. I.e. if I have 2 thread groups and I specify 47 users on Blazemeter, then I will get 47 users for one thread group and 47 users for another.

Is there an option to specify the configuration specifically for every thread group?

我如何在Blazemeter/JMeter中为每个线程组单独指定不同数量的用户?

我如何在Blazemeter/JMeter中为每个线程组单独指定不同数量的用户?

答案1

得分: 1

你看到了“禁用这些设置将使用测试脚本中配置的值。”这部分了吗?

只需切换这些蓝色滑块以关闭 BlazeMeter 覆盖,将使用 .jmx 脚本中的设置。

如果您想要通过 BlazeMeter Web 界面控制线程数量,您可以通过 __P() 函数 在线程组中定义线程数量,并使用 JMeter 属性 来提供这些值。

英文:

Have you seen Disabling these settings will use the values configured in the test script. stanza?

我如何在Blazemeter/JMeter中为每个线程组单独指定不同数量的用户?

Just toggle these blue sliders to turn BlazeMeter override off and settings from the .jmx script will be used.

If you want to control the number of threads from BlazeMeter web interface you can define the number of threads in Thread Groups via __P() function and use JMeter Properties for providing the values.

答案2

得分: 1

根据我的理解,用户的总数将按照每个线程组拥有的用户数量的比例进行分配。
例如,如果有100个用户,而您有3个线程组,分别是

  • 线程组1:5个用户
  • 线程组2:3个用户
  • 线程组3:2个用户

那么,在测试中,每个线程组将分配以下数量的用户:

  • 线程组1:50个用户
  • 线程组2:30个用户
  • 线程组3:20个用户

参考链接:https://guide.blazemeter.com/hc/en-us/articles/13261977385233-Load-Configuration#h_01FCYANX1PW58PZR08S7FGYNA6

英文:

As per my understanding, the total number of Users gets divided into the ratio of the number of Users each thread group has.
Like if there are 100 Users and if you have 3 thread groups with

  • Thread Group1: 5 Users
  • Thread Group2: 3 Users
  • Thread Group3: 2 Users

then, for the test, following will be the number of Users to each of the thread groups:

  • Thread Group1: 50 Users
  • Thread Group2: 30 Users
  • Thread Group3: 20 Users

Ref: https://guide.blazemeter.com/hc/en-us/articles/13261977385233-Load-Configuration#h_01FCYANX1PW58PZR08S7FGYNA6

huangapple
  • 本文由 发表于 2023年6月12日 16:19:27
  • 转载请务必保留本文链接:https://go.coder-hub.com/76454742.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定