需要使用单个CSV文件在Jmeter中读取多个用户的多个数据集。

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

Need to read multiple data sets for multiple Users using a single CSV file in Jmeter

问题

我需要处理以下情况。

在我的测试计划中,我有200个用户;每个用户包含100条记录,但我需要使用单个CSV文件来存储所有用户的数据。

也就是说,我的CSV文件将包含20000条不同的记录,每个用户需要运行100条记录。

我之前使用了200个不同的CSV文件,它是有效的,但现在我只需要一个CSV文件来获取所有用户的数据。

英文:

I need to work on the below scenario.

In my test plan, I have 200 users; each user contains 100 records, but I need to use a single csv file for all users.

i.e., my CSV will contain 20000 different records, and each user needs to run 100 records.

I used 200 different CSV files, and it is working, but now I need only one CSV file to get the data for all the users.

答案1

得分: 0

最简单的选择是使用替代的CSV数据集配置实现,即baolu-csv-data-file-config

它具备将一部分行分配给每个虚拟用户的能力:

需要使用单个CSV文件在Jmeter中读取多个用户的多个数据集。

这样,您可以确保单个用户不会运行超过100条记录。

该插件可以使用JMeter插件管理器进行安装。

需要使用单个CSV文件在Jmeter中读取多个用户的多个数据集。

英文:

The easiest option is going for an alternative CSV Data Set Config implementation, i.e. baolu-csv-data-file-config

It has capability of allocating a subset of lines to each virtual user:

需要使用单个CSV文件在Jmeter中读取多个用户的多个数据集。

This way you can get confidence that a single user won't run more than 100 records.

The plugin can be installed using JMeter Plugins Manager

需要使用单个CSV文件在Jmeter中读取多个用户的多个数据集。

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

发表评论

匿名网友

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

确定