Test
Test

Reputation: 49

What is an alternative to CSV data set config in JMeter?

We want to use 100 credentials from .csv but I would rather like to know if there is any other alternative to this available in jmeter.

Upvotes: 0

Views: 856

Answers (2)

Dmitri T
Dmitri T

Reputation: 168162

If you have the credentials in the CSV file there are no better ways of "feeding" them to JMeter than CSV Data Set Config.

Just in case if you're still looking for alternatives:

  1. __CSVRead() function. The disadvantage is that the function reads the whole file into memory which might be a problem for large CSV files. The advantage is that you can choose/change the name of the CSV file dynamically (in the runtime) while with the CSV Data Set Config it has to be immutable and cannot be changed once it's initialized.
  2. JDBC Test Elements - allows fetching data (i.e. credentials) from the database rather than from file
  3. Redis Data Set - allows fetching data from Redis data storage
  4. HTTP Simple Table Server - exposes simple HTTP API for fetching data from CSV (useful for distributed architecture when you want to ensure that different JMeter slaves will use the different data), this way you don't have to copy .csv file to slave machines and split it

Upvotes: 2

Janesh Kodikara
Janesh Kodikara

Reputation: 1821

There are few alternatives

  1. JMeter Plugin for reading random CVS data : Random CSV Data Set Config
  2. JMeter function : __CSVRead
  3. Reading CSV file data from a JSR223 Pre Processor

CSV Data Set Config is simple, easier to user and available out of the box.

Upvotes: 0

Related Questions