guide to install j meterdocshare01.docshare.tips/files/24378/243781646.pdf0120 4029000 guide to...

19
0120 4029000 Guide to Install J Meter Operating system Support for J meter JMeter is a pure Java application and should run correctly on any system that has a compatible Java implementation. Here is the list of operating system compatible with JMeter

Upload: others

Post on 16-Apr-2020

20 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Guide to Install J Meterdocshare01.docshare.tips/files/24378/243781646.pdf0120 4029000 Guide to Install J Meter Operating system Support for J meter JMeter is a pure Java application

0120 4029000

Guide to Install J Meter Operating system Support for J meter JMeter is a pure Java application and should run correctly on any system that has a compatible Java implementation. Here is the list of operating system compatible with JMeter

Page 2: Guide to Install J Meterdocshare01.docshare.tips/files/24378/243781646.pdf0120 4029000 Guide to Install J Meter Operating system Support for J meter JMeter is a pure Java application

0120 4029000

Steps to Install JMeter

Step 1) Install JavaBecause JMeter is pure Java desktop application, it requires a fully compliant JVM 6 or higher. You can download and install the latest version of Java SE Development Kit.

Page 3: Guide to Install J Meterdocshare01.docshare.tips/files/24378/243781646.pdf0120 4029000 Guide to Install J Meter Operating system Support for J meter JMeter is a pure Java application

0120 4029000

After installation is finished, you can use the following procedure to check whether Java JDK is installed successfully in your systemIn Window/Linux, go to TerminalEnter command java –versionIf Java runtime environment is installed successfully, you will see the output as figure below

If nothing displays, please re-install Java SE runtime environment

Page 4: Guide to Install J Meterdocshare01.docshare.tips/files/24378/243781646.pdf0120 4029000 Guide to Install J Meter Operating system Support for J meter JMeter is a pure Java application

0120 4029000

Step 2) Download JmeterFind the jmeter from the url www.apache.org Choose the Binaries file (either zip or tgz) to download as shown in figure below

Page 5: Guide to Install J Meterdocshare01.docshare.tips/files/24378/243781646.pdf0120 4029000 Guide to Install J Meter Operating system Support for J meter JMeter is a pure Java application

0120 4029000

Step 3) InstallationInstallation of JMeter is extremely easy and simple. You simply unzip the zip/tar file into the directory where you want JMeter to be installed. There is no tedious installation screen to deal with! Simple unzip and you are done!Once the unzipping is done installation directory structure should look like as figure below

Page 6: Guide to Install J Meterdocshare01.docshare.tips/files/24378/243781646.pdf0120 4029000 Guide to Install J Meter Operating system Support for J meter JMeter is a pure Java application

0120 4029000

Given below is the description of the JMeter directories and its importance JMeter directory contains many files and directory/bin: Contains JMeter script file for starting JMeter/docs: JMeter documentation files/extras: ant related extra files/lib/: Contains the required Java library for JMeter/lib/ext: contains the core jar files for JMeter and the protocols/lib/ junit: JUnit library used for JMeter/printable_docs:

Step 4) Launch JMeter

You can start JMeter in 3 modesGUI ModeServer ModeCommand Line Mode

Page 7: Guide to Install J Meterdocshare01.docshare.tips/files/24378/243781646.pdf0120 4029000 Guide to Install J Meter Operating system Support for J meter JMeter is a pure Java application

0120 4029000

If you are using Window, just run the file /bin/jmeter.bat to start JMeter in GUI mode as shown below

Page 8: Guide to Install J Meterdocshare01.docshare.tips/files/24378/243781646.pdf0120 4029000 Guide to Install J Meter Operating system Support for J meter JMeter is a pure Java application

0120 4029000

In Bin Click on jmeter.bat

Page 9: Guide to Install J Meterdocshare01.docshare.tips/files/24378/243781646.pdf0120 4029000 Guide to Install J Meter Operating system Support for J meter JMeter is a pure Java application

0120 4029000

J-Meter Element

The different components of JMeter are called Elements. Each Element is designed for a specific purpose.The figure below gives the some common elements in JMeter.

Page 10: Guide to Install J Meterdocshare01.docshare.tips/files/24378/243781646.pdf0120 4029000 Guide to Install J Meter Operating system Support for J meter JMeter is a pure Java application

Thread Group

Thread Groups is a collection of Threads. Each thread represents one user using

the application under test. Basically each Thread simulates one real user request to

the server.

The controls for a thread group allow you to Set the number of threads for each group.

For example, if you set the number of threads as 100; JMeter will create and simulate 100 user requests to the server under test.

0120 4029000

Page 11: Guide to Install J Meterdocshare01.docshare.tips/files/24378/243781646.pdf0120 4029000 Guide to Install J Meter Operating system Support for J meter JMeter is a pure Java application

0120 4029000

Page 12: Guide to Install J Meterdocshare01.docshare.tips/files/24378/243781646.pdf0120 4029000 Guide to Install J Meter Operating system Support for J meter JMeter is a pure Java application

0120 4029000

SamplersJMeter supports testing HTTP, FTP , JDBC and many other protocols. Thread Groups simulate user request to the server The user request could be FTP Request, HTTP Request, JDBC Request...Etc.

Page 13: Guide to Install J Meterdocshare01.docshare.tips/files/24378/243781646.pdf0120 4029000 Guide to Install J Meter Operating system Support for J meter JMeter is a pure Java application

0120 4029000

FTP request:Let imagine you want to performance test an FTP server. You can use FTP request sampler in JMeter to do this task. This controller lets you send an FTP "download file" or "upload file" request to an FTP server.

For example, if you want to download a file "Test.txt" from a FTP server under test, you need to configure some parameters in JMeter as figure below

Page 14: Guide to Install J Meterdocshare01.docshare.tips/files/24378/243781646.pdf0120 4029000 Guide to Install J Meter Operating system Support for J meter JMeter is a pure Java application

0120 4029000

Page 15: Guide to Install J Meterdocshare01.docshare.tips/files/24378/243781646.pdf0120 4029000 Guide to Install J Meter Operating system Support for J meter JMeter is a pure Java application

JMeter will send FTP command to FTP server

0120 4029000

HTTP request:

This sampler lets you send an HTTP/HTTPS request to a web server. Consider the example below. JMeter send a HTTP request to Google website and retrieve HTML files or image from this website.

Page 16: Guide to Install J Meterdocshare01.docshare.tips/files/24378/243781646.pdf0120 4029000 Guide to Install J Meter Operating system Support for J meter JMeter is a pure Java application

0120 4029000

JDBC request:

This sampler lets you execute Database Performance Testing. It sends a JDBC Request (an SQL query) to a database.

For example, a database server has a field test_result stored in a table name test_tbl. You want to query this data from the database server; you can configure JMeter to send a SQL query to this server to retrieve data.

Page 17: Guide to Install J Meterdocshare01.docshare.tips/files/24378/243781646.pdf0120 4029000 Guide to Install J Meter Operating system Support for J meter JMeter is a pure Java application

0120 4029000

BSF Sampler:This sampler allows you to write a sampler using a BSF scripting language.

Here is an example of BSF  Sampler in Jmeter

Page 18: Guide to Install J Meterdocshare01.docshare.tips/files/24378/243781646.pdf0120 4029000 Guide to Install J Meter Operating system Support for J meter JMeter is a pure Java application

0120 4029000

SMTP Sampler:To test a mail server STMP sampler is use, This sampler is used to send email messages using SMTP protocol.

Page 19: Guide to Install J Meterdocshare01.docshare.tips/files/24378/243781646.pdf0120 4029000 Guide to Install J Meter Operating system Support for J meter JMeter is a pure Java application

0120 4029000