简体   繁体   中英

Random CSV Data Set Config

scenario: I have a script, which has around 14 transaction, out of which few are repeated transaction, so we have them in fragments. And we are using the random CSV data set config for parameterisation

Issue: As this random CSV config is referred many transactions with in a single iteration and also the number of threads is more than 500, we encounter a memory issue during the run and samples get stalling, this is due to the file opening on for every user, for every iteration to use this random CSV data set.

Do we have any other alternative to this random CSV data set config element?

Note: Every script of mine has one or more random CSV data set configs, and I have around 8+ scripts witth more than 4k users for the entire scenario

  1. You can use "normal" CSV Data Set Config instead. I don't like the idea of using the Random CSV Data Set Config at all because I want tests to be repeatable , but if for some reason you want/need random data - you can "shuffle" your CSV file(s) somewhere in setUp Thread Group using JSR223 Sampler
  2. Alternatively you can go for Redis Data Set which has "random" option
  3. HTTP Simple Table Server also supports RANDOM mode
  4. You can also put your data into the database and access it using JDBC Request sampler

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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