The Concept of Parameterization
Parameterization

The Concept of parameterization is the act of creating different datasets for different users in the same test script. It can be used to run multiple users with different credentials in the same script. 

Parameterization in JMeter is the process where test plans are executed using multiple sets of user Input Data. So, the input values for the test are fetched from data files to perform parameterization testing. We will see how to do data parameterization in JMeter to pick data from files and not depending on manual configuration each time.

So, for running multiple users test and to make script realistic we need to pass dynamic input data. This can handle be handled using parameterization.

In below request, need to pass dynamic IP address.

The Concept of Parameterization

  1. Open notepad and list out all IP address (if more than one field in notepad then it should be comma separated) and save this in the same location where your JMeter script is. Say file name is ipaddress.csv
  2. Add CSV Config Data in the script.

The Concept of Parameterization

  1. And pass all required value like below.

The Concept of Parameterization

  1. Here “ip” is a variable where the value will be stored during execution.
  2. Let’s pass this variable in a request for a hard-coded IP address.

The Concept of Parameterization

Storing Response Data in CSV Files

Performance test developers often encounter situations when it is necessary to save response data from a server to a file. Saving JMeter response data in a file can be very helpful in performance testing.

  1. Take case 1, where we have captured a token number from the response and stored in variable “token”. For saving the same data in CSV file, use below steps.

    Storing Response Data in CSV Files

  2. This will create a CSV file at location C:\temp folder and store the token number.

    Storing Response Data in CSV Files

  3. CSV file with data.

Storing Response Data in CSV Files

You may also like: JMeter Web Services Authentication Explained

Leave a comment

Your email address will not be published. Required fields are marked *