如何在JMeter中由单个用户读取每一行csv? [英] How to read each and every row of csv by single user in JMeter?

查看:56
本文介绍了如何在JMeter中由单个用户读取每一行csv?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含 10 个服务器名称的 CSV 文件.我想通过我的线程组的每个线程读取整 10 行.

I have a CSV file which contains 10 server names. I want to read entire 10 rows by each and every thread of my thread group.

Thread 1 reads row1,row2....row 10  
Thread 2 reads row1,row2....row 10

但目前我的测试脚本读取文件如下,

But currently my test script read the file as below,

Thread 1 reads row1  
Thread 2 reads row2  
Thread 3 reads row3

推荐答案

有两个选项:

  • CSV Data Set Config with Sharing Mode=Current Thread
  • Variables From CSV File

阅读文档,看看哪个更适合您.

Read docs and see which one will be better for you.

这篇关于如何在JMeter中由单个用户读取每一行csv?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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