8/10/2019 What Jmeter Software Testing Tool Does
1/19
0120 4029000
Guide to Install J MeterOperating system Support for J meter
JMeter is a pure Javaapplication and should run correctly on any system that has a
compatible Java implementation. Here is the list of operating system compatible
with JMeter
http://www.apextgi.in/Testing/softwaretesting.aspx8/10/2019 What Jmeter Software Testing Tool Does
2/19
0120 4029000
Steps to Install JMeter
Step 1) Install JavaBecause JMeter is pure Java desktop application, it requires a fully compliant
JVM or higher. !ou can download and install the latest version of Java "#
$evelopment %it.
8/10/2019 What Jmeter Software Testing Tool Does
3/19
0120 4029000
&fter installation is finished, you can use the following procedure to check whether
Java J$% is installed successfully in your system
'n (indow)*inu+, go to Terminal
#nter commandjava version
'f Java runtime environment is installed successfully, you will see the output as figure
below
'f nothing displays, please reinstall Java "# runtime environment
8/10/2019 What Jmeter Software Testing Tool Does
4/19
0120 4029000
Step 2) Donload Jmeter
-ind the meter from the url www.apache.org /hoose the Binaries file 0either 1ip or tg12
to download as shown in figure below
8/10/2019 What Jmeter Software Testing Tool Does
5/19
0120 4029000
Step !) Installation'nstallation of JMeter is e+tremely easy and simple. !ou simply un1ip the 1ip)tar
file into the directory where you want JMeter to be installed. 3here is no tedious
installation screen to deal with4 "imple un1ip and you are done45nce the un1ipping is done installation directory structure should look like as
figure below
8/10/2019 What Jmeter Software Testing Tool Does
6/19
0120 4029000
6iven below is the description of the JMeter directories and its importance JMeter
directory contains many files and directory
)"in7 /ontains JMeter script file for starting JMeter
)do#s7 JMeter documentation files$e%tras7 ant related e+tra files
)li")7 /ontains the required Java library for JMeter
$li"$e%t7 contains the core ar files for JMeter and the protocols
$li"$ junit7 J8nit library used for JMeter
)printa"le&do#s7
Step ') (aun# JMeter
!ou can start JMeter in 9 modes
68' Mode
"erver Mode
/ommand *ine Mode
8/10/2019 What Jmeter Software Testing Tool Does
7/19
0120 4029000
'f you are using (indow, ust run the file $"in$jmeter*"atto start JMeter in 68'
mode as shown below
8/10/2019 What Jmeter Software Testing Tool Does
8/19
0120 4029000
'n Bin /lick on meter.bat
8/10/2019 What Jmeter Software Testing Tool Does
9/19
:;
8/10/2019 What Jmeter Software Testing Tool Does
10/19
Tread Group
3hread 6roups is a collection of 3hreads. #ach thread represents one user using
the application under test. Basically each 3hread simulates one real user request to
the server.
3he controls for a thread group allow you to "et the number of threads for each
group.
-or e+ample, if you set the number of threads as ;::? JMeter will create and
simulate ;:: user requests to the server under test.
0120 4029000
8/10/2019 What Jmeter Software Testing Tool Does
11/19
0120 4029000
8/10/2019 What Jmeter Software Testing Tool Does
12/19
0120 4029000
SamplersJMeter supports testing H33@, -3@ , J$B/ and many other protocols.
3hread 6roups simulate user request to the server 3he user request could be-3@ Aequest, H33@ Aequest, J$B/ Aequest...#tc.
8/10/2019 What Jmeter Software Testing Tool Does
13/19
0120 4029000
-T. re/uest0
*et imagine you want to performance test an -3@ server. !ou can use -3@ request
sampler in JMeter to do this task. 3his controller lets you send an -3@ downloadfile or upload file request to an -3@ server.
-or e+ample, if you want to download a file 3est.t+t from a -3@ server under
test, you need to configure some parameters in JMeter as figure below
8/10/2019 What Jmeter Software Testing Tool Does
14/19
0120 4029000
8/10/2019 What Jmeter Software Testing Tool Does
15/19
JMeter ill send -T. #ommand to -T. server
0120 4029000
TT. re/uest0
3his sampler lets you send an H33@)H33@" request to a web server. /onsider the
e+ample below. JMeter send a H33@ request to 6oogle website and retrieve H3M* files
or image from this website.
8/10/2019 What Jmeter Software Testing Tool Does
16/19
0120 4029000
JD3 re/uest0
3his sampler lets you e+ecute $atabase @erformance 3esting. 't sends a J$B/ Aequest
0an "C* query2 to a database.
-or e+ample, a database server has a field testDresult stored in a table name testDtbl.
!ou want to query this data from the database server? you can configure JMeter to send
a "C* query to this server to retrieve data.
8/10/2019 What Jmeter Software Testing Tool Does
17/19
0120 4029000
S- Sampler0
3his sampler allows you to write a sampler using a B"- scripting language.
Here is an e+ample of B"- "ampler in Jmeter
8/10/2019 What Jmeter Software Testing Tool Does
18/19
0120 4029000
SMT. Sampler0To test a mail server "3M@ sampler is use, 3his sampler is used to send email messages
using "M3@ protocol.
8/10/2019 What Jmeter Software Testing Tool Does
19/19
0120 4029000