Apache JMeter

Apache JMeter
eBook: $23.99
Formats: PDF, PacktLib, ePub and Mobi formats
save 35%!
Print + free eBook + free PacktLib access to the book: $63.98    Print cover: $39.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Table of Contents
Sample Chapters
  • Test your website and measure its performance
  • Master the JMeter environment and learn all its features
  • Build test plan for measuring the performance
  • Step-by-step instructions and careful explanations

Book Details

Language : English
Paperback : 140 pages [ 235mm x 191mm ]
Release Date : June 2008
ISBN : 1847192955
ISBN 13 : 9781847192950
Author(s) : Emily H. Halili
Topics and Technologies : All Books, App Testing, Networking and Servers, Java, Open Source

Table of Contents

Chapter 1: Automated Testing
Chapter 2: Introduction to JMeter
Chapter 3: Getting Started
Chapter 4: The Test Plan
Chapter 5: Load/Performance Testing of Websites
Chapter 6: Functional Testing
Chapter 7: Advanced Features
Chapter 8: JMeter and Beyond
Appendix A: Component Description
Appendix B: Resources
Appendix C: Glossary
  • Chapter 4: The Test Plan
    • What Is a Test Plan?
    • Elements of a Test Plan
      • Thread Group
      • Controllers
        • Samplers
        • Logic Controllers
      • Listeners
      • Timers
      • Assertions
      • Configuration Elements
      • Pre-Processor Elements
      • Post-Processor Elements
    • Building a Test Plan That Tests Web Sites
    • Summary
  • Chapter 5: Load/Performance Testing of Websites
    • Preparing for Load Testing
      • What You Need to Know
      • Some Helpful Tips to Get Better Results
    • Using JMeter Components
      • Recording HTTP Requests
      • Creating the Test Plan
      • Adding Listeners
      • Adding Timers
    • Running the Test Plan
    • Interpreting the Results
    • Remote Testing with JMeter
    • Monitoring the Server's Performance
    • Summary
  • Chapter 6: Functional Testing
    • Preparing for Functional Testing
    • Using JMeter Components
      • Using HTTP Proxy Server to Record Page Requests
        • Configuring the Proxy Server
        • Adding HTTP Request Default
        • Adding HTTP Header Manager
      • Let the Recording Begin...
      • Adding User Defined Variables
    • Running the Test
    • Summary
  • Chapter 7: Advanced Features
    • Extending the Web Test Plan
      • Using the ForEach Controller
      • Using the While Controller and the StringFromFile Function
      • Using the Loop Controller and the StringFromFile Function
      • Using Regular Expressions
    • Testing a Database Server
    • Testing an FTP Server
    • Summary

Emily H. Halili

Since graduating in 1998, from California State University in Computer Science, Emily H. Halili has taken numerous roles in the IT/Software industry—namely as Software Engineer, Network Engineer, Lecturer, and Trainer. Currently a QA Engineer in CEO Consultancy-Malaysia with great passion for testing, she has two years of experience in software testing and managing QA activities. She is an experienced manual tester and has practical knowledge of various open-source automation tools and framework, including JMeter, Selenium, JProfiler, Badboy, Sahi, Watij and many more.

Sorry, we don't have any reviews for this title yet.

Code Downloads

Download the code and support files for this book.

Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


- 12 submitted: last submission 14 May 2013

Errata type: Typo | Page number: 4

2nd word of last sentence: 'downlad' should be 'download'

Errata type: Typo | Page number: 13

last sentence: "You *can too* contribute" should be *too can* contribute."

Errata type: Typo | Page number: 39

1st paragraph, last sentence: "as failed request." should be "as a failed request"

Errata type: Typo | Page number: 42

1st paragraph, last sentence: "retrieve particular value" should be "retrieve a particular value"

Errata type: Code | Page number: 48

last list item: "Kb/sec" should be "KB/sec"

Errata type: Code | Page number: 49

2nd paragraph, 3rd sentence: "elements, *the* next important question" and "test out *in* your"

Errata type: Code | Page number: 51

1st paragraph, 1st sentence: "you are *ready now* to" should be "you are *now ready* to"

Errata type: Code | Page number: 79

2nd paragraph, 3rd line: "is unable to record *HTTP* requests" should be "is unable to record *HTTPS* requests"

Errata type: Code | Page number: 116

delete the link (http://themindstorms.wordpress.com/2007/01/10/groovy-support-for-jmeter) mentioned above "Another satisfied user's blog."

Errata type: Others | Page number: 16

1st paragraph, last sentence: "as this project offer..." should be "as this project offers..."


Errata type: Others | Page number: 38

Under "Assertions" section, last sentence,"to ensure the responses you receive. Do not contain content errors or missing sections" should be "to ensure the responses you receive do not contain content errors or missing sections"


Errata type: Others | Page number: 46

3. b. "Default element as www.mocksite.com" should be "Default element as www.mocksite.net"


Sample chapters

You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

Frequently bought together

Apache JMeter +    SproutCore Web Application Development =
50% Off
the second eBook
Price for both: €27.35

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

  • Why automating tests is so useful, and how it will help you to improve performance of your web sites and applications
  • Installing, setting up the environment, and running JMeter
  • Planning automated tests to provide a thorough insight into application performance, bottle necks, and load bearing capabilities
  • Building a test plan to test your websites
  • Test web, database, FTP servers and more – so you can get a detailed insight into which parts of your application are holding up performance
  • Build more complex test elements using regular expressions and functions
  • Capture, process, and analyse test results

In Detail

A bad response time on a website can drive away visitors and prospective customers. To measure what a website can handle, there should be a way to simulate and analyze different load scenarios—this is where a load-testing tool like JMeter comes in. JMeter is a powerful desktop performance tool from the Apache Jakarta project, written in Java, for load-testing web pages, web applications, and other static and dynamic resources including databases, files, Servlets, Perl scripts, Java Objects, FTP Servers, and more.

JMeter works by acting as the "client side" of an application, and measures response time. As such, it's one half of the testing arsenal; the other half consists of a tool to watch metrics on the server side, such as thread counts, CPU loads, resource usage, and memory usage. Although it can't behave like a browser to measure rich client-side logic such as JavaScripts or Applets, JMeter certainly measures the performance of the target server from the client's point of view. JMeter is able to capture test results that help you make informed decisions and benchmark your application.

This book introduces you to JMeter (version 2.3) and test automation, providing a step-by-step guide to testing with JMeter. You will learn how to measure the performance of a website using JMeter.

While it discusses test automation generally, the bulk of this book gives specific, vivid, and easy-to-understand walkthroughs of JMeter's testing tools showing what they can do, and when and how to use them.

Learn to load-test your website, test its functional behaviour, and measure its performance by implementing the features of JMeter.


This book is focussed on learning and understanding JMeter. It starts with a basic introduction and installation, followed by using JMeter to test web applications. It proceeds to show how to use JMeter to perform load testing and also to test the functional behavior of the target web application. The discussion continues to include testing servers other than web application servers, and demonstrates the use of some of JMeter's built-in functions. This book aims to give readers an introductory view of JMeter, and gives a brief and realistic overview to those researching for an ideal testing tool to use in testing projects.

The book is written in a straightforward, clear way, with plenty of step-by-step instructions and illustrative screenshots.

Who this book is for

The ideal readers or users of this book are experienced or novice testers who have been testing manually and now would like to automate their tests. Those testers who are already automating their testing using other tools or testing software may also want to use this book as they look for alternatives. This book would also be a good point for test Managers/Leaders to start doing research on the test automation tool that may best suit their testing needs and of course, their budget

JMeter's target audience is the testing community, which is generally not the hangout of developers or technical people. Almost anything one would like to do in HTTP testing will be supported by JMeter without requiring any programming.

The user need not have much technical knowledge to work with JMeter. It has a simple-to-use and intuitive drag-and-drop style GUI that helps any non-technical user to get started.

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software