Search code examples
javacsvrandomjmeterbeanshell

How to get random data from CSV file in JMeter


We are planning to pick Random data from CSV file in Jmeter. But we know there is no option in CSV Data Config. So we are planning to implement the Bean-shell Pre processor.

Any other idea to get Random data from Csv Files?

For Example


Solution

  • I believe the fastest and the easiest solution would be using HTTP Simple Table Server which provides RANDOM read mode, something like:

    http://localhost:9191/sts/READ?READ_MODE=RANDOM&KEEP=TRUE&FILENAME=foo.csv
    

    HTTP Simple Table Server can be installed using JMeter Plugins Manager

    JMeter Plugins Manager HTTP Simple Table Server