Friday, 13 January 2017

JMeter Experty

Jmeter use for performance Testing of Web Services or Web application. Is an Open Source testing software. It is 100% pure Java application for load and performance testing. jMeter is designed to cover categories of tests like load, functional, performance, regression, etc. 



I am sharing this document which is designed for Software Professionals, who are willing to learn jMeter Framework in simple and easy steps. This doc will give you great understanding on jMeter Framework concepts, and after completing this tutorial, you will be at intermediate level of expertise from where you can take yourself to higher level of expertise. first let's download the jmeter in any linux machine.


Jmeter installtion Steps

====================================== Jmeter ===========
1) wget -c http://archive.apache.org/dist/jakarta/jmeter/binaries/jakarta-jmeter-2.3.4.tgz

2) Download Binary 2.3.4.zip . The zip file name will be “jakarta-jmeter-2.3.4″
3) Unzip “jakarta-jmeter-2.3.4″
4) New folder with name “jakarta-jmeter-2.3.4″ will be created
5) Go to command prompt
6) go to “jakarta-jmeter-2.3.4″ folder (cd jakarta-jmeter-2.3.4)
7) go to “bin” folder (cd bin)
8) Now you are in bin folder (i.e jakarta-jmeter-2.3.4/bin/)
9) type the command “sh jmeter.sh”


1. I  run jmeter.sh file then I got following screen-


2. Right click on Test Plan –Add – Thread(User)--ThreadGroup.



3. Enter the no. of threads equal to no. of user to hit the web site .
Ramp-up period should be zero(0), since user can simultaneously access the site
Loop Count =1 (each user run the scripts only once)



4. Right click on Test Plan—Add--Config Element—HTTP Cache Manager
select both -clear cache each iteration? And  use cache-control/Expires header when processing Get requests


5. Right click on Test Plan
1. Add- Config Element—HTTP Cookie  Manager
2. Select -Clear cookies each iteration.

8. Finally Go to your Jmeter-sites are added in the Thread group and run the jmeter watch summary report.


The summary report shows values about the measurement Jmeter has done while calling the same page as if many users are calling the page. It gives the result in tabular format which you can save as .csv file.
These are some main headings in the summary result listener. Lets understand them in detail: Label, Samples, Average, Max, Min, Std.Dev, Error%, Throughput, KB/Sec, Avg.Bytes.

No comments:

Post a Comment