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.
- 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
- Add CSV Config Data in the script.
- And pass all required value like below.
- Here “ip” is a variable where the value will be stored during execution.
- Let’s pass this variable in a request for a hard-coded IP address.
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.
- 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.
- This will create a CSV file at location C:\temp folder and store the token number.
- CSV file with data.
You may also like: JMeter Web Services Authentication Explained