Jmeter
Introduction to JMeter
JMeter was first developed by Stefano Mazzocchi of the Apache Software Foundation. He wrote it primarily to test the performance of Apache JServ,which was later replaced by the Apache Tomcat Project. JMeter has since been developed and has expanded to load-test FTP servers, database servers, and Java Servlets and objects. Today, it has been widely accepted as a performance testing tool for web applications by various companies.
JMeter is a 100% java application and should run correctly on any system that has a compliant java implementation. We have used Ubuntu Linux 11.0, JMeter version 2.4.1. The version of Jre required is 1.6 or higher.
JMeter will be used to test the performance of both static and dynamic resources such as static files, java servlets, CGI scripts, java objects, databases, FTP servers and more. JMeter can be used to simulate a heavy load on server, network or object to test its strength or to analyze overall performance under different load types. Additionally JMeter can help you regression test your application by allowing you create test scripts with assertions to validate that your application is returning the results you expect.
This tutorial will benefit students, teachers, professionals, entrepreneurs and enthusiasts who is doing the performance testing of an application.
The prerequisite for learning these tutorials is the knowledge of Performance testing and knowledge of Linux - shell commands etc.
The Spoken Tutorial effort for JMeter has been contributed by Thirupathi P from Talentsprint, Hyderabad.
Contents
Basic Level
Getting Started with JMeter
- Building a Test Plan in JMeter
- Installation of JMeter & Jre
- Test plan
- Adding an Element
- Thread Group
- Loading and Saving Elements
- Removing an Element
- Saving the Test Plan
- Running a Test
- Stopping a Test
Recording In JMeter using Proxy Server
- Recording In JMeter using Proxy Server
- Workbench
- Proxyserver
Elements of a Test Plan
- Samplers
- HTTP Request
- Timers
- Constant Timer
- Gaussian Random Timer
- Uniform Random Timer
- Listeners and Assertions
- View Results Tree
- Aggregate Report
- Summary Report
- Response Assertion
Advanced Level
Elements of a Test plan
- Logic Controllers
- Simple Controller
- Loop Controller
- Once Only Controller
- Interleave Controller
- Random Controller
- If Controller
- While Controller
- Switch Controller
- ForEach Controller
- Module Controller
- Configuration Elements
- CSV Data Set Config
- HTTP Cache Manager
- HTTP Cookie Manager
- HTTP Header Manager
- HTTP Request Defaults
- User Defined Variables
- Random Variable
- Counter
- Listeners
- View Results in Table
- Aggregate Graph
- Simple Data Writer
- Save Responses to a file
- Saving response data
- Loading (reading) response data
- Saving Listener GUI data
- Post and Pre Processors
- Regular Expression Extractor
- BeanShell PreProcessor
- Samplers
- Debug Sampler
- Web Service(SOAP) Request
- BSF Sampler
Building a Database Test Plan
- Adding JDBC Requests
Distributed Testing
- Distributed Testing
- Distributed Testing
- Features of Distributed Testing
- Pre-Requisites for Distributed testing
- Starting the servers
- Adding server IP to client's Properties File
- Start the JMeter Client from a GUI client