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
DeleteRead all the related Posts:
ReplyDelete64 Software Manual Testing Interview Questions
Answers To Common Job Interview Questions
Behavioral Questions In Interviews
Questions to Ask at an Interview
Competency based Interview Questions
Read all the related Posts:
How to avoid missing defect in Software Testing?
Defect Management Process
What is the difference between a Test Strategy and Test Plan?
Beginners Guide to ETL Testing
Step by step guide from Test Case Development to Test Execution
How 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 :)
Thanks for the great information in your blog Selenium Training in Chennai
ReplyDeletehow 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 .
This is very useful for a beginner. I simply mark this article for future reference. Keep sharing that kind of message. Thank you for sharing. Good reading. Thank you for the data. It helps us.
ReplyDeleteDedicatedHosting4u.com
Thank you for sharing the information.
ReplyDeletePower BI Training
Thank you for sharing the information.
ReplyDeleteDevOps Online Training