Now we will learn how to parameterize the values using CSV data set Config.
For parameterization also we will use a public site as an example i.e. www.redbus.in.
Follow the following steps :
For parameterization also we will use a public site as an example i.e. www.redbus.in.
Follow the following steps :
1] Add Thread Group Recording Controller and HTTP Request.
In HTTP Request > Server Name or IP : Enter http://www.redbus.in
2] Add a HTTP Proxy Server for the Workbench
4] After recording a few transactions, close the browser and stop the Proxy server in Jmeter. U get the below recordings.
4] After recording a few transactions, close the browser and stop the Proxy server in Jmeter. U get the below recordings.
5] Here we have seen the tickets from Mumbai to Goa on 07-Dec-2011
6] Now we will parameterize the destination Mumbai to Goa,Bangalore , Chennai and Delhi .
8] Add->Listener->View Results Tree
6] Now we will parameterize the destination Mumbai to Goa,
Now add a CSV Data set Config and a Listener element to the thread group.
7] Add->Config Element->CSV Data Set Config
8] Add->Listener->View Results Tree
9] Now open a notepad (inside bin) and enter your keywords.
10] Save the file as tocity.csv. The extension csv makes it a comma separated Value (CSV) file.
11] Now select the CSV Data set Config element and fill in the fields as follows
Filename: tocity.csv
(Give the path name if you have put it inside a subfolder e.g. foldername\tocity.csv)
Variable Names: A
(This variable name is referenced in the search sample.)
Delimiter: ,
12] Now go to the Booking/select bus.aspx and change the value of variable toCityName to ${A}.In Jmeter we reference a variable using ${} .For each iteration the value of toCityName will be replaced as fetched by variable A.
We need to do the necessary changes of the value of these variables wherever they are present in recorded script.
Great, really helpful thanks for the Post :)
ReplyDeleteHearty welcome :)
DeleteThanks for your feedback/response.
it's really very helpful,thanks
DeleteHow to Load test Login functionality with JMeter having Viewstate & Eventvalidation.
ReplyDeleteMahesh, thanks for article.
ReplyDeleteThere is also jmeter video tutorials which cover article. I think it will be interesting.
Nice Article...
ReplyDeleteNice article. Easy to understand.
ReplyDeleteBeginner can quickly grab Jmeter features :)
how to set of unique values for each thread in jmeter.
ReplyDeletehow to pick up unique data for each iteration from parameterisation file in jmeter
ReplyDeleteHello,
ReplyDeleteThis is a great post. So clear and easy to follow. Thanks for the tangible and attainable help. All your hard work is much appreciated. I just wanted to share information about JMeter Online Training .
Nice informetion you shered about Parameterization using CSV data set Config, i found some other tutorial about Jmeter Tutorial Guide for Beginners that's also Nice.
ReplyDeleteThe design of a non-profit website can significantly impact the organization's branding and visibility. A well-designed site can attract more supporters and donations. This blog post provides useful insights. Please visit our website:- non profit website design
ReplyDelete