1. TestHive Workshops Week 8
Performance Testing with Cucumber and Jmeter
Ahmet KÖK
testhive@googlegroups.com
2. What is Performance testing?
Performance testing is testing that is performed, to
determine how fast some aspect of a system performs
under a particular workload.
3. Types of Performance Testing
Load Testing
A test to measure the performance of a system under a
specified level of load.
Stress Testing
A test in which the load on a system is progressively
increased until performance degrades below a specified level.
The test finds the maximum load the system can support.
Volume Testing
A test in which the volume of data in the system is set to a
realistic or pre-agreed level. The performance of a system on
an empty database is normally better than that on a database
with a realistic volume of data.
6. What is JMeter ?
The Apache JMeterTM is pure Java open source software, which was first
developed by Stefano Mazzocchi of the Apache Software Foundation,
designed to load test functional behavior and measure performance. You
can use JMeter to analyze and measure the performance of web
application or variety of services. Performance testing means testing a
web application against heavy load, multiple and concurrent user traffic.
JMeter originally is used for testing Web Application or FTP application.
Nowadays, it is used for functional test, database server test etc.
10. Operating system Support for JMeter
Operating system Java Virtual Machine Architecture
Free BSD 9.0 Open JDK 6 amd64
Linux 2.4, 2.6, 3.1 Sun JDK 5, 6, 7 and Open
JDK 6
i386, amd64
Mac OS JDK6
Window XP Sun JDK6, Sun JDK 7 32/64 bits
Window 7 Sun JDK 5, 6, 7. 32 bits
11. Steps to Install JMeter
Step 1) Install Java
You can download and install the latest version of Java SE Development
Kit.
Step 2) Download Jmeter
http://jmeter.apache.org/download_jmeter.cgi
Step 3) Installation
Installation of JMeter is extremely easy and simple. You simply unzip
the zip/tar file into the directory where you want JMeter to be installed.
Step 4) Launch Jmeter
You can start JMeter in 3 modes:
GUI Mode
Server Mode
Command Line Mode
13. 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