简体   繁体   English

如何通过Jmeter中的循环控制器内的Csv文件传递Excel数据

[英]How to pass Excel data through Csv file inside a Loop Controller in Jmeter

In my script i have a loop controller before a bunch of requests,and i have parameterized the request data for eg. 在我的脚本中,我在一堆请求之前有一个循环控制器,并且我已经为例如参数化了请求数据。 in my case it is the row number I parameterized. 在我的情况下,这是我参数化的行号。 I added a CSV file before the thread group too.Issue is it is only taking the first row of variables in excel file.I understand the sharing options are All Threads,Current Thread,Current Thread Group so it will take next row values in the next iteration.How to make the Csv file work in a loop controller to pass next row values? 我也在线程组之前添加了一个CSV文件。问题是它仅占用excel文件中的第一行变量。我知道共享选项是``所有线程'',``当前线程'',``当前线程组'',因此它将在下一个迭代。如何使Csv文件在循环控制器中工作以传递下一行值? 在此处输入图片说明

CSV Data Set Config should be under Loop Controller (which is under Thread Group). CSV数据集配置应在“循环控制器”下(在“线程组”下)。

That how each line will be taken for each loop iteration. 表示每次循环迭代将采用的每一行。

-Thread Group
...
   -Loop Controller

       - CSV Data Set Config

Do u mean the iteration due to loop controller or the loop count in thread group? 你是说由于循环控制器或线程组中的循环计数引起的迭代吗? enter image description here 在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM