0% found this document useful (0 votes)
460 views

Jmeter - Overview: - by Nandini

Uploaded by

shekar_km
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
460 views

Jmeter - Overview: - by Nandini

Uploaded by

shekar_km
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 8

Jmeter - Overview

- By Nandini

© Logica 2008. All rights reserved


Agenda

 Introduction
 What is Jmeter ?
 Preparing tests
 Bad boy
 HTTP Proxy server
 Running tests
 GUI mode
 Non GUI mode
 Distributed testing

Analyzing Test
Introduction

Definition:
• JMeter is an open source Apache Jakarta application.
• Used as a load testing tool for analyzing and measuring the performance of a variety of services, with a focus
on web applications.
• Now can be extended to run the protocols Web (HTTP/HTTPS),FTP, JDBC, JMS, LDAP, SOAP.
• Originally developed by Stefano Mazzocchi
Requirements:
• JMeter requires a fully compliant JVM 1.4 or higher.
• JMeter has been tested and works under - Unix (Solaris, Linux, etc),Windows (98, NT, XP, etc), OpenVMS
Alpha 7.3+
Installation:
• Download and install the latest version of Apache Jakarta JMeter from
http://jakarta.apache.org/site/downloads/downloads_jmeter.cgi
Preparing Tests

Using HTTP Proxy Server:

• One way to create a test plan is to use the HTTP Proxy server provided by Jmeter. What
the proxy does is it records the requests sent to the server using recording controller.
• Jmeter's proxy server currently does not support recording HTTPS. Since HTTPS is
secure, the proxy is unable to decrypt the traffic and record the request parameters or
cookies.

Badboy:
• Easiest method is to use Badboy http://www.badboy.com.au/
Running Tests

Non GUI Mode


– Why?
◦ The stress due to test and display is too high.
– How ?
◦ By running command line
Example : jmeter -n -t my_test.jmx -l log.jtl -H my.proxy.server -P 8000

Distributed testing
--- Why ?
◦ To simulate stressed environment with a lot of clients.
– How ?
• Edit “remote_hosts=127.0.0.1” in jmeter.properties
• Start jmeter_server.bat on the host machines
• Run jmeter.bat
Running Tests (Continued….)

GUI Mode:

To run JMeter, run the jmeter.bat (for Windows) located in bin directory

Jmeter Test plan consist of


• Thread groups: organize threads of execution
• Samplers: sends requests to a server
• Logical controllers : control flow of test plan (loops, conditionals, ordering, etc.)
• Listeners: record, summarize and display record and response data
• Timers: introduce delays in test plan
• Assertions: assert facts about responses
• Configuration elements: To set up defaults and variables for later use by samplers
• Pre-processors and post-processors

8 December 2021 Performance Testing Case Studies No. 6


Analyzing Test

Aggregated graph
Result tree

• Gives all the statistics concerning the tests • Gives in a tree form, all the samplers
results, the requests, and the sampler
data.
• May be recorded in a specified file for • May also be recorded in a specified file
further treatment (data mining) for further treatment

8 December 2021 Performance Testing Case Studies No. 7


Analyzing Test (continued…)

Aggregated graph Result tree

8 December 2021 Performance Testing Case Studies No. 8

You might also like