Top Banner
JMETER INTRODUCTION Apache jMeter is an Open Source testing software. It is 100% pure Java application for load and performance testing. jMeter is designed especially for load, functional, performance, regression, etc.
13

Jmeter introduction

Jan 07, 2017

Download

Technology

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Jmeter introduction

JMETER INTRODUCTIONApache jMeter is an Open Source testing

software. It is 100% pure Java application for load and performance testing. jMeter is designed especially for load, functional,

performance, regression, etc.

Page 2: Jmeter introduction

Prerequisites

We you should have a basic understanding of Java programming language, text editor and execution of programs, etc., because you are going to use jMeter to handle all levels of Java project testing (regression, functional, load, performance, etc.,),

So it will be good if you have knowledge of software development and software testing processes.

Page 3: Jmeter introduction

Advantages of jMeter 1.Open source 2.Friendly GUI 3.Platform Independent Visualize test results Highly flexible Easy Installation Support multi protocol Record & Playback

Page 4: Jmeter introduction

How Does JMeter WorkJMeter Send Request to Target

Server

Get Statistics information of target server

Generate test report in different format

Page 5: Jmeter introduction

Jmeter Installation 1.Jmeter is pure java application, it

requires JMV6 or Higher 2.First install JDK and set the path as

required 3.Download Jmeter from

http://jmeter.apache.org/download_jmeter.cgi

4.Apache-jmeter2.9 chose either zip or tgz

5.Installation of Jmeter is easy and simple

Page 6: Jmeter introduction
Page 7: Jmeter introduction

 JMeter directories /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:

Page 8: Jmeter introduction

Step 4) Launch JMeter

You can start JMeter in 3 modes GUI Mode Server Mode Command Line Mode

Page 9: Jmeter introduction
Page 10: Jmeter introduction
Page 11: Jmeter introduction

Start JMeter in Server Mode

Server mode is used for distributed testing. This testing works as client-server model. In this model, JMeter runs on server computer in server mode. On client computer, JMeter runs in GUI mode.

To start the server mode, you run the bat file bin\jmeter-server.bat as below figure

Page 12: Jmeter introduction

Use JMeter in Linux

Using JMeter in Linux is the same as in Window; you simply run the following shell script.

Run the script file jmeter (This file has no extension)- run JMeter (in GUI mode by default).

Run the script file jmeter-server - start JMeter in server mode (calls JMeter script with appropriate parameters)

jmeter.sh - very basic JMeter script with no JVM options specified.

mirror-server.sh - runs the JMeter Mirror Server in non-GUI mode

shutdown.sh - Run the Shutdown client to stop a non-GUI instance gracefully

stoptest.sh - Run the Shutdown client to stop a non-GUI instance abruptly

Page 13: Jmeter introduction

JMS JMS supports two types of messaging − Point-to-Point messaging − Queue

messaging is generally used for transactions where the sender expects a response. Messaging systems are quite different from normal HTTP requests. In HTTP, a single user sends a request and gets a response.

Topic messaging − Topic messages are commonly known as pub/sub messaging. Topic messaging is generally used in cases where a message is published by a producer and consumed by multiple subscribers.