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

查看:792
本文介绍了如何在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天全站免登陆