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
About the Author
About the Reviewers
Customer Feedback

Configuring the JMeter HTTP(S) Test Script Recorder

The first step is to configure the proxy server in JMeter. To do this, we perform the following steps:

  1. Start JMeter.


  1. Add a thread group, as follows:
    1. Right-click on Test Plan and navigate to Add | Threads (User) |Thread Group.
    2. Right-click on Thread Group and navigate to Add | Logic Controller | Recording Controller.
  2. Add the HTTP(S) Test Script Recorder element, as follows:
    • Right-click on WorkBench and navigate to Add | Non-Test Elements | HTTP(S) Test Script Recorder.
  3. Change the port to 7000(1) (under Global Settings).
  4. You can use a different port if you choose to. What is important is to choose a port that is not currently used by an existing process on the machine. The default is 8888.
  5. Under the Test plan content section, choose the Test Plan>Thread Group(2)> Recording Controller option from the Target Controller dropdown.
  6. This allows the recorded actions to be targeted to the thread group we created in step 2.
  7. Under the Test plan content...