0% found this document useful (0 votes)
27 views14 pages

Jmeter

Uploaded by

anu11421priya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views14 pages

Jmeter

Uploaded by

anu11421priya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

JMeter load Testing simulates the

heavy load:
Create a Performance Test Plan in
JMeter
• Before testing the performance of target web
application, we should determine-
• Normal Load: Average number of users visit
your website
• Heavy Load: The maximum number of users
visit your website
• What is your target in this test?

• Step 1) Add Thread Group
• Start JMeter
• Select Test Plan on the tree
• Add Thread Group
• Right click on the “Test Plan” and add a new
thread group: Add -> Threads (Users) -
> Thread Group
• In the Thread Group control panel, enter
Thread Properties as follows:

• Ramp-Up Period tells JMeter how long
to delay before starting the next user. For
example, if we have 100 users and a 100-
second Ramp-Up period, then the delay
between starting users would be 1 second
(100 seconds /100 users)
• Step 2) Adding JMeter elements
• Now we determine what JMeter elements in
this test. The elements are
• HTTP request Default
• This element can be added by right-clicking on
the Thread Group and selecting: Add -> Config
Element -> HTTP Request Defaults.
• In the HTTP Request Defaults control panel, enter the Website name under test
(http://www.google.com) port 80.
• Right-click on Thread Group and select: Add -> Sampler -> HTTP Request.
• In HTTP Request Control Panel, the Path field indicates which URL request you
want to send to Google server.

• For example, if you enter “calendar” in Path field. JMeter will create the URL
request http://www.google.com/calendar to Google server
• If you keep the Path field blank JMeter will create the URL
request http://www.google.com to Google server.

• In this test, you keep the Path field blank to make JMeter create the URL
request http://www.google.com to Google server.

• Step 3) Adding Graph result
• JMeter can show the test result in Graph
format.
• Right click Test Plan, Add -> Listener -> Graph
Results
• Step 4) Run Test and get the test result
• Press the Run button (Ctrl + R) on the Toolbar to
start the software testing process. You will see
the test result display on Graph in the real time.
• The picture below presents a graph of a test plan,
where we simulated 100 users who accessed on
website www.google.com.

• At the bottom of the picture, there are the
following statistics, represented in colors:
• Black: The total number of current samples sent.
• Blue: The current average of all samples sent.
• Red: The current standard deviation.
• Green: Throughput rate that represents the
number of requests per minute the server
handled

• To analyze the performance of the web server under test,
you should focus on 2 parameters
• Throughput
• Deviation
• The Throughput is the most important parameter. It
represents the ability of the server to handle a heavy
load. The higher the Throughput is, the better is the server
performance.
• The deviation is shown in red – it indicates the deviation
from the average. The smaller the better.

You might also like