Upload
testhive
View
28
Download
5
Tags:
Embed Size (px)
Citation preview
WEEK 8PERFORMANCE TESTINGWITH CUCUMBER AND JMETER
TestHive Workshops Week 8Performance Testing with Cucumber and Jmeter
Ahmet KÖK
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.
Types of Performance TestingLoad TestingA test to measure the performance of a system under a specified level of load.Stress TestingA 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 TestingA 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.
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.
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
Steps to Install JMeterStep 1) Install Java
You can download and install the latest version of Java SE Development Kit.
Step 2) Download Jmeterhttp://jmeter.apache.org/download_jmeter.cgi
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.
Step 4) Launch JmeterYou can start JMeter in 3 modes: GUI Mode Server Mode Command Line Mode
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
THANK YOUResources:http://jmeter.apache.org/http://www.guru99.com/http://www.automation-consultants.com/http://community.blazemeter.com/