Random selection from CSV file in Jmeter

前端 未结 6 1758
借酒劲吻你
借酒劲吻你 2021-02-07 06:38

I have a very large CSV file (8000+ items) of URLs that I\'m reading with a CSV Data Set Config element. It is populating the path of an HTTP Request sampler and iterating throu

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-07 07:27

    I am not sure if this will work, but I will anyways suggest it.

    Why not divide your URLs in 100 different CSV files. Then in each thread you generate the random number and use that number to identify CSV file to read using __CSVRead function.

    CSVRead">http://jmeter.apache.org/usermanual/functions.html#_CSVRead

    Now the only part I am not sure if the __CSVRead function reopens the file every time or shares the same file handle across the threads.

    You may want to try it. Please share your findings.

提交回复
热议问题