Read Data From A CSV File In Random Order - Apache JMeter

The default CSV Data Set Config element could only read records in sequential order. But the "Random CSV Data Set" plugin can help you to read the data in random order from a CSV file. This post helps you to install and use this plugin.

How to Install Random CSV Data Set Plugin Using Plugin Manager

  1. Open Plugin Manager on JMeter
  2. Search for "Random CSV Data Set" under "Available Plugins" tab
  3. Select "Random CSV Data Set" checkbox
  4. Click "Apply Changes and Restart JMeter" button
Installing Random CSV Data Set



















How to Install Random CSV Data Set Plugin Manually

  1. Navigate to https://jmeter-plugins.org/ page
  2. Search for "Random CSV Data Set" in Search field
  3. Click on version number to download the plugin (It's recommended to use the latest version)
  4. Once download is completed, extract the ZIP file and copy the jar files to the specified location
  5. Restart the JMeter to effect the changes
Installing Random CSV Data Set


















How to Use Random CSV Data Set Config Element

Once the installation is successful, You can find the "Random CSV Data Set" under Config Elements. Right click on your test plan and add element - Add >> Config Element >> bzm - Random CSV Data Set Config.

Then select Random CSV Data Set in the tree view and configure the settings as shown in the below image.
Random CSV Data Set Config Element





















Below table gives description for each configuration parameter in the Random CSV Data Set.

Click "Test CSV Reading" button to see how the plugin is parsing the file. After configuring all the required parameters in Random CSV Data Set, use the Variable Names to replace the values in you script.


Happy Learning !!!

Comments

Post a Comment

Popular posts from this blog

How to add arguments to HTTP Sampler in dynamically in JMeter

JMeter integration with InfluxDB and Grafana