0% found this document useful (0 votes)
44 views47 pages

Cour Jmeter

Uploaded by

imaneelazzouzi90
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)
44 views47 pages

Cour Jmeter

Uploaded by

imaneelazzouzi90
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/ 47

JMETER

PRÉSENTÉ PAR :
FAOUA MAOULI
CHAIMAA EL AKFA
CONTENT
01 WHAT'S JMETER?

02 JMETER FEATURES

03 JMETER FUNCTIONNALITIES

04 HOW DOES JMETER WORK?

05 INSTALLATION OF JMETER FOR WINDOWS

06 INSTALLATION OF JMETER FOR MAC

07 CREATE SCRIPT WITH JMETER


JMETER
JMeter is an Open Source testing
software. It is 100% pure Java
application for load and performance
testing.
jMeter is designed to cover various
categories of tests such as load
testing, functional testing,
performance testing, regression
testing, etc., and it requires JDK 5 or
higher.
JMETER
To better understand this
technology, you should have a basic
understanding of Java programming
language. As you are going to use
jMeter to perform all types of testing
(regression, functional, load,
performance, etc.) at different stages
of a Java project, it is recommended
that you have a good grip over
software development and software
testing processes.
JMETER
Stefano Mazzocchi of the Apache
Software Foundation was the original
developer of JMeter. He wrote it
primarily to test the performance of
Apache JServ (now called as Apache
Tomcat project). Apache later
redesigned JMeter to enhance the GUI
and to add functional testing
capabilities.
JMETER

JMeter is a Java desktop application


with a graphical interface that uses
the Swing graphical API. It can
therefore run on any environment /
workstation that accepts a Java
virtual machine, for example −
Windows, Linux, Mac, etc.
JMETER FEATURES
Following are some of the features of JMeter

Being an open source software, it is freely available.


It has a simple and intuitive GUI.
JMeter can conduct load and performance test for many different server types − Web -
HTTP, HTTPS, SOAP, Database via JDBC, LDAP, JMS, Mail - POP3, etc.
It is a platform-independent tool. On Linux/Unix, JMeter can be invoked by clicking on
JMeter shell script. On Windows, it can be invoked by starting the jmeter.bat file.
It has full Swing and lightweight component support (precompiled JAR uses packages
javax.swing.* ).
JMeter store its test plans in XML format. This means you can generate a test plan using a
text editor.
Its full multi-threading framework allows concurrent sampling by many threads and
simultaneous sampling of different functions by separate thread groups.
It is highly extensible.
It can also be used to perform automated and functional testing of the applications.
JMETER FUNCTIONALITIES
Apache JMeter is a powerful open-source tool designed to load test,
stress test, and measure the performance of web applications, databases,
and other services. Some of the key functionalities of JMeter are:
1. Load testing
2. Performance testing
3. Stress testing
4. Functional testing
5. Regression testing
6. Distributed testing
7. Reporting
HOW THE JMETER
WORKS
JMeter works by simulating user
requests to a web application or
service and measuring its
performance under different load
conditions.
HOW THE JMETER WORKS
JMETER ELEMENTS
The different components of JMeter are called Elements.
Each Element is designed for a specific purpose.
The figure below gives some common elements in JMeter.
01 02 03 04

THREAD GROUP SAMPLERS LISTENERS CONFIGURATION


Thread Groups is a Samplers are used to Listeners are used to ELEMENTS
collection of Threads. simulate user requests collect and display the Configuration elements are
Each thread represents to a web application or results of a load test. used to configure settings
one user using the service during a load They provide various for the samplers and other
application under test. test. A sampler sends a reporting options that test elements in the test
Basically, each Thread request to the server allow you to analyze the plan. They are used to set up
simulates one real user under test and records performance of the variables, headers, cookies,
request to the server. the response time. application under and other settings that are
different load needed by the samplers
conditions. during the test.
HOW JMETER WORKS
Here are the basic steps involved in using JMeter to load test an application:

Plan Test Scenarios: The first step is to plan your test scenarios, including the number of
users, the types of requests, and the load conditions you want to simulate.
Create Test Plan: Once you have a clear plan, you can create a test plan in JMeter. A test plan
is a set of instructions that tells JMeter what to do during the test.
Configure Test Elements: In the test plan, you can add various test elements, such as
samplers, timers, controllers, assertions, and listeners. These elements work together to
simulate user requests and measure the performance of the application.
Run Test: After configuring the test elements, you can run the test and JMeter will simulate
user requests to the application and measure its performance under different load conditions.
Analyze Results: Once the test is complete, JMeter will generate a report with various
performance metrics, such as response times, throughput, and error rates. You can analyze
these results to identify any performance bottlenecks or issues in the application.
INSTALLATION FOR
WINDOWS
Step 1: Installation of
Java

version>8
INSTALLATION FOR
WINDOWS
Step 1: Installation of
Java

Choose the convenable


for you
INSTALLATION FOR
WINDOWS
Step 1: Installation of
Java

go to setting of
variables
INSTALLATION FOR
WINDOWS
Step 1: Installation of
Java

go to envirenement
variables
INSTALLATION FOR
WINDOWS
Step 1: Installation of
Java

click New
INSTALLATION FOR
WINDOWS
Step 1: Installation of
Java

go to the document jdk and click the bin


document .
Copy his emplacement in your Laptop
INSTALLATION FOR
WINDOWS
Step 1: Installation of
Java

go past it
INSTALLATION FOR
WINDOWS
Step 1: Installation of
Java

click New
INSTALLATION FOR
WINDOWS
Step 1: Installation of
Java

go copy the
emplacement of the jdk
document

go past it
INSTALLATION FOR
WINDOWS
Step 1: Installation of
Java

check java version


INSTALLATION FOR
WINDOWS
Step 2: Dowloand
Jmeter

Install "apache-jmeter-
5.5.zip"
INSTALLATION FOR
WINDOWS
Step 2: Dowloand
Jmeter

After the end of the


dowmoand

go unzip it
INSTALLATION FOR
WINDOWS
Step 2: Dowloand
Jmeter

Open the document


INSTALLATION FOR
WINDOWS
Step 2: Dowloand
Jmeter

copy the file


emplacement
INSTALLATION FOR
WINDOWS
Step 2: Dowloand
Jmeter

past it in cmd and the


jmeter will be opened
INSTALLATION FOR
WINDOWS
Step 2: Dowloand
Jmeter

If you have this message that's mean


you have an probleme in Jmeter
installlation
INSTALLATION FOR
WINDOWS
Step 2: Dowloand
Jmeter

Go back to jmeter-dowloand site

Dowloand "apache-jmeter-5.5.tgz"
INSTALLATION FOR
WINDOWS
Step 2: Dowloand
Jmeter

After the end of the dowmoand

go unzip it
INSTALLATION FOR
WINDOWS
Step 2: Dowloand
Jmeter

Enter to bin document


INSTALLATION FOR
WINDOWS
Step 2: Dowloand
Jmeter

copy the file


emplacement
INSTALLATION FOR
WINDOWS
Step 2: Dowloand
Jmeter

past it in cmd and the


jmeter will be opened
INSTALLATION FOR
WINDOWS

This is Jmater
INSTALLATION FOR
MAC
Fist method

Go unzip the file


INSTALLATION FOR
MAC
Fist method

Open the document


INSTALLATION FOR
MAC
Fist method

Open the bin document


INSTALLATION FOR
MAC
Fist method

go to jmeter.sh file
INSTALLATION FOR
MAC
Fist method

and glisse it in your terminal


INSTALLATION FOR
MAC
Fist method

tap the enter button


INSTALLATION FOR
MAC
Fist method

And Jmeter will open


INSTALLATION FOR
MAC
Seconde method

go to "jmeter.sh" propreties and copy the emplacement


INSTALLATION FOR
MAC
Seconde method

past it in your terminal


INSTALLATION FOR
MAC
Seconde method

click to enter
INSTALLATION FOR
MAC
Seconde method

and Jmeter will be open

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy