Wednesday, December 12, 2012

Jmeter Parametrization



Parametrization is process of generalizing some user data so as to use it for multiple  users ,  Suppose i want to  the Log in  in the application with different set of data then i have to Parametrize the Username and Password .

Steps : Parametrization of Username and Password

1. Go to  the HTTP sampler where Username and Password are defined >> Change them with variable
  ${user}  and ${password} 



2. Add Config Element >> CSV data Set config

3.  In CSV data Set config  add the variable  name as defined above  e.g user,password
4. Provide CSV file Location  e.g . C:/Login.csv
5. Add Username and Password data in  csv file .




In Jmeter  you can Parametrized any variable , User Input field , Server name , Port  etc .



 

No comments: