Book description
Learn how to get the most out of JMeter, improve the productivity of your apps, and integrate JMeter with your Agile and DevOps processes.
Key Features
- Gain insights into preparing test environments and selecting the correct use cases to load test
- Learn to analyze a load test with Backend Listener, HTML Report Dashboard, and View Results Tree
- Explore how to integrate JMeter in the software factory
Book Description
Load tests help identify the maximum number of requests a software system can handle. One popular open source tool for load testing is JMeter. By leveraging the features and capabilities of JMeter, you can perform extensive load testing and fix issues in your application before they become problematic.
This book is written by JMeter developers and begins by discussing the whole process, including recording a script, setting it up, and launching it, enabling you to almost immediately start load testing. You'll learn the best practices that you must follow while designing test cases. You'll also explore the different protocols offered by JMeter through various real-world examples. Finally, you'll see how to integrate JMeter into the DevOps approach and create professional reports. You'll discover ways to use the eco-system of JMeter to integrate new protocols, enrich its monitoring, and leverage its power through the use of the cloud.
By the end of this book, you'll know all that's needed to perform comprehensive load testing on your applications by using all the best practices and features of JMeter.
What you will learn
- Explore various JMeter concepts, including Timers scope and Assertions scope
- Discover the types of test protocols and load tests that JMeter supports
- Design a realistic test scenario using various tips and best practices
- Prepare your test environment with injectors and the system under test
- Learn and apply good practices when recording a script
- Integrate JMeter with Jenkins using Maven
Who this book is for
This book contains all the valuable information you need in one place and is a must for everybody who is seriously working with JMeter. It might be a little condensed for absolute beginners, but this book is the best you can find if you already have some performance testing experience and want to get further. In particular, it would be invaluable to developers who want to expand their JMeter knowledge into advanced topics or switch to JMeter from other load testing tools.
Table of contents
- Preface
- Chapter 1
- Quick Start with JMeter
- Chapter 2
- JMeter Overview
- Chapter 3
- Designing a Test Case
- Chapter 4
-
Important Concepts in JMeter
- Scoping
- Elements' Execution Order
- How Timer Scope Works
-
How Assertion Scope Works
- Rule 1: Assertions Are Executed after Each Sampler in Their Scope or to Parent Samplers
- Rule 2: Failed Assertions Cause the Failure of the Entire Transaction Controller
- Rule 3: Assertions Can Validate the Main Sample and/or the Sub-Samples
- Rule 4: Be Careful with Low-Performing Assertions
- Our Advice
- How Properties Differ from Variables
- Chapter 5
- Preparing the Test Environment (Injectors and Tested Systems)
- Chapter 6
-
Being Productive with JMeter
- Introduction
-
Good Practices When Recording a Script
- Use the HTTP(S) Test Script Recorder Element
- BlazeMeter Chrome Extension
- Pre-Populating HTTP Request Defaults before Recording the Script
- Use Tools / Import from cURL
- Static Resources
- Using Timeouts
- Applying a Naming Convention to Transactions/Requests
- Global Assertion
- Reusing Script Parts
- Recording an HTTPS website
- Keyboard Shortcuts
- Debugging a script
-
Finalizing a Script
- Changing the Name of a Transaction According to a Parameter
- Sharing an Object between Different Thread Groups
- Getting the Most out of CSV Files
- Marking a Response as an Error
- Using a Regular Expression Extractor on Content with Spaces and Multiple Lines
- Executing an Action Based on the Status of the Previous One
- Adding Headers to Our HTTP Requests
- Waiting with While Controller
- The Right Extractor at the Right Time
- Handle Cookies
- Conclusion
- Chapter 7
- Load Testing a Website
- Chapter 8
- Load Testing Web Services
- Chapter 9
- Load Testing a Database Server
- Chapter 10
- Load Testing Message-Oriented Middleware (MOM) via JMS
- Chapter 11
- Performing a Load Test
- Chapter 12
-
Visualizing and Analyzing the Load Testing Results
- Introduction
- Visualizing the Results with Listeners
- Visualizing the Results with Third Party Visualizing Tools
- Visualizing the Results with PaaS Load Testing tools
- Some Tips to Read the Results
-
Some Tips to Present the Results
- Don't Average Percentiles
- Define the Number of Metrics to Display in a Time Series Line Graph
- Define the Resolution/Granularity of the Measures
- Don't Forget to Add Labels, Legends, and Units in Graphs
- Axis Forced 0
- Don't Use Pie Charts
- Prefer Bar Graphs When We Have Sparse Metrics
- Present Errors with Toplist
- Time Series Graphs and Single-Value Summaries
- Conclusion
- Chapter 13
-
Integration of JMeter in the DevOps Tool Chain
- Introduction
- Organization/Team Topology
- Setting Up Shift-Left Strategy
- Integrating JMeter in Our Software Factory
-
Automation
- Example 3: Non-Regression Testing of Memory Consumption with EJ JProfiler
- Example 4: Detecting a Memory Leak during an Endurance Test with EJ JProfiler
- Example 5: Retrieving SQL Queries Executed during a Load Test with YourKit Java Profiler
- Example 6: Analysis of the Garbage Collector (GC) Log File with GCViewer
- Example 7: Non-Regression Testing of Web APIs with Dynatrace AppMon
- Conclusion
Product information
- Title: Master Apache JMeter - From Load Testing to DevOps
- Author(s):
- Release date: August 2019
- Publisher(s): Packt Publishing
- ISBN: 9781839217647
You might also like
video
Learn JMeter from Scratch on Live Applications - Performance Testing
Discover the power of JMeter, a leading tool in performance testing, with our comprehensive course designed …
video
Mastering JMeter 5.0
JMeter has become an industry-standard tool for conducting functional, load, performance, and regression tests on web …
video
REST API Automation Testing from Scratch - REST Assured Java
Explore the world of REST API with this hands-on course. You’ll not only learn the concepts …
book
Hands-On Microservices with Spring Boot and Spring Cloud
Apply microservices patterns to build resilient and scalable distributed systems Key Features Understand the challenges of …