Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

jmeter - How can i fetch data sequentially each row on each iteration fron csv file config on j meter

I have set 4 virtual user on thread group and i have set csv file config having 2 rows of data.when i run the test the first iteration 2 virtual user is fetching data sequentially but in the next iteration the remaining 2 virtual user is fetching ramdom data not sequentially.I want to fetch data sequentially on the next iteration (1 user->first row,2 user->second row) next itetation(3user->first row,4user->second row) how can i achieve that?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I don't think you can achieve this using CSV Data Set Config as in case of concurrency you might run into the situation when pre-allocated entry for the user will be not sequential when it comes to test results.

If you want to have the following sequence:

  • line 1
  • line 2
  • line 1
  • line 2

no matter how many users/iterations you have and what is response times fluctuation you need to consider switching to __StringFromFile() or __CSVRead() functions instead of CSV Data Set Config

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...