How to Create Data driven & Parameterize Scripts in Jmeter

To create parametrize/ data driven scripts in JMeter are very simple , you can follow any one of the approach :

  • Csv File
  • Test Plan Variables
  • User Defined Variables
  • Using Functions for date/time , dynamic string & Data

In this post i am going to explain paramertizaion with Csv File

  • Identify the variables you want to parametrize
  • Let say for Login request i want to parametrize userid & password
Parameterize Scripts  in Jmeter
  • Replace the Variable value with ${VariableName}
Parameterize Scripts  in Jmeter

Learnsharelead.com
  • Create Csv File and Variable name with Values
  • Save the Csv File and Note down the Location
Parameterize Scripts  in Jmeter

Learnsharelead.com
  • Add CSV Data Set Config and Provide the csv File path
Parameterize Scripts  in Jmeter

Learnsharelead.com
  • Increase the Thread and Run the Test
Parameterize Scripts  in Jmeter

Learnsharelead.com
Increase thread count to test with 2 Data
Parameterize Scripts  in Jmeter

Learnsharelead.com
Replacement of Row 2 Data
Parameterize Scripts  in Jmeter

Learnsharelead.com
Replacement of Row 3 data

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s