更新时间:2021-07-02 19:07:30
coverpage
Title Page
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Why subscribe?
Customer Feedback
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
Performance Testing Fundamentals
The incident
The aftermath
Performance testing
Performance testing and tuning
Baselines
Load and stress testing
JMeter to the rescue
Up and running with JMeter
Installation
Installing Java JDK
Setting up JAVA_HOME
On Windows
On Unix
Running JMeter
Command-line options
JMeter's classpath
Configuring a proxy server
Running in non-GUI mode
Running in server mode
Overriding properties
Tracking errors during test execution
Configuring JMeter
Summary
Recording Your First Test
Configuring the JMeter HTTP(S) Test Script Recorder
Setting up your browser to use the proxy server
Using a browser extension
Changing the machine system settings
Running your first recorded scenario
Excilys bank case study
Parameterizing the script
Extracting information during test run
Anatomy of a JMeter test
Test plan
Thread groups
Controllers
Samplers
Logic controllers
Test fragments
Listeners
Timers
Assertions
Configuration elements
Preprocessor and Postprocessor elements
Submitting Forms
Capturing simple forms
Handling checkboxes
Handling radio buttons
Handling file uploads
Handling file downloads
Posting JSON data
Reading JSON data
Using JSR223 PostProcessor
Handling XML responses
Managing Sessions
Managing sessions with cookies
Managing sessions with URL rewriting
Monitoring Tests in Real-Time
Setting up InfluxDB
Setting up Grafana
Creating an InfluxDB database for our test plan
Connecting Grafana to the database
Putting it all together
Importing the Grafana dashboard
Distributed Testing
Remote testing with JMeter
Configuring JMeter slave nodes
Configuring one slave per machine
Configuring the master node
Configuring multiple slave nodes on a single box
Leveraging the cloud for distributed testing
Obtaining your access key secret key and key pair
Launching the AWS instance
Executing the test plan