如何在JMeter中运行2000个用户,而我的CSV文件中只有20个用户?

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

how to run 2000 users in jmeter while i am having 20 users in my csv file?

问题

我有一个需求,要运行2000个用户1小时,我的CSV文件中有20个真实用户,所以我应该如何运行它,以便在每运行20个用户后,再次将这20个用户循环运行,直到2000个用户完成运行。

英文:

I have a requirement to run 2000 users for 1 hr and i have 20 real users in my csv file, so how can i run it so after every 20 users, if will again run those 20 users in a loop till 2000 users running completion.

答案1

得分: 0

给定JMeter中CSV数据集配置的默认共享模式为“所有线程”,JMeter将在每个虚拟用户的每次迭代中读取下一行。

因此,请确保:

  1. EOF时重新使用设置为TrueEOF时停止线程设置为False

    如何在JMeter中运行2000个用户,而我的CSV文件中只有20个用户?

  2. 线程组中的用户数量乘以循环计数等于2000

    如何在JMeter中运行2000个用户,而我的CSV文件中只有20个用户?

一般来说,如果您需要模拟2000个用户,您应该有2000个凭据,因此值得检查是否可以生成更多的测试帐户,即1980个。

英文:

Given default Sharing Mode of All Threads in the CSV Data Set Config JMeter will read the next line on each iteration of each virtual user.

So just make sure that:

  1. Recycle on EOF is set to True and Stop thread on EOF is set to False

    如何在JMeter中运行2000个用户,而我的CSV文件中只有20个用户?

  2. The number of users multiplied by the Loop Count in the Thread Group is equal to 2000

    如何在JMeter中运行2000个用户,而我的CSV文件中只有20个用户?

In general ideally if you need to mimic 2000 users you should have 2000 credentials so it worth checking whether it's possible to generate 1980 more test accounts.

huangapple
  • 本文由 发表于 2023年7月27日 20:13:08
  • 转载请务必保留本文链接:https://go.coder-hub.com/76779621.html
匿名

发表评论

匿名网友

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

确定