Book Image

Performance Testing with JMeter 3 - Third Edition

By : Bayo Erinle
Book Image

Performance Testing with JMeter 3 - Third Edition

By: Bayo Erinle

Overview of this book

JMeter is a Java application designed to load and test performance for web application. JMeter extends to improve the functioning of various other static and dynamic resources. This book is a great starting point to learn about JMeter. It covers the new features introduced with JMeter 3 and enables you to dive deep into the new techniques needed for measuring your website performance. The book starts with the basics of performance testing and guides you through recording your first test scenario, before diving deeper into JMeter. You will also learn how to configure JMeter and browsers to help record test plans. Moving on, you will learn how to capture form submission in JMeter, dive into managing sessions with JMeter and see how to leverage some of the components provided by JMeter to handle web application HTTP sessions. You will also learn how JMeter can help monitor tests in real-time. Further, you will go in depth into distributed testing and see how to leverage the capabilities of JMeter to accomplish this. You will get acquainted with some tips and best practices with regard to performance testing. By the end of the book, you will have learned how to take full advantage of the real power behind Apache JMeter.
Table of Contents (17 chapters)
Title Page
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Customer Feedback
Preface
Index

Using timers in your test plan


By default, JMeter doesn't put timers in your test plans when a scenario is recorded. This is far from reality. Ideally, users will have a think or wait time between page views and requests. Getting JMeter to simulate such pauses or waits makes your test plans more realistic, bringing them closer to how actual users may behave. JMeter offers various built-in timer components that help achieve this. Each varies from the others in how it varies the simulated pauses. The following is a list of some of the included timers at the time of writing of this book.

The Constant Timer

The Constant Timer is used if you want each thread to pause for the same amount of time between requests.

The Gaussian Random Timer

The Gaussian Random Timer pauses each thread request for a random amount of time, with most of the time intervals occurring near a particular value. The total delay is the sum of the Gaussian distributed value times, the value specified, and the offset.

The Uniform...