Performance Testing with JMeter 2.9
eBook - ePub

Performance Testing with JMeter 2.9

  1. 148 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Performance Testing with JMeter 2.9

About this book

In Detail

Performance testing with JMeter 2.9 is critical to the success of any software product launch and continued scalability. Irrespective of the size of the application's user base, it's vital to deliver the best user experience to consumers. Apache JMeter is an excellent testing tool that provides an insight into how applications might behave under load enabling organizations to focus on making adequate preparations.

Performance Testing with JMeter 2.9 is a practical, hands-on guide that equips you with all the essential skills needed to effectively use JMeter to test web applications using a number of clear and practical step-by-step guides. It allows you take full advantage of the real power behind Apache JMeter, quickly taking you from novice to master.

Performance Testing with JMeter 2.9 begins with the fundamentals of performance testing and gets you acquainted with JMeter. It will guide you through recording realistic and maintainable scripts.

You will acquire new skills working with tools such as Vagrant, Puppet, and AWS, allowing you to leverage the cloud to aid in distributed testing. You will learn how to do some BeanShell scripting and take advantage of regular expressions, JMeter properties, and extension points to build comprehensive and robust test suites. Also, you will learn how to test RESTful web services, deal with XML, JSON, file downloads/uploads, and much more. Topics like resource monitoring, distributed testing, managing sessions, and extending JMeter are also covered.

Performance Testing with JMeter 2.9 will teach you all you need to know to take full advantage of JMeter for testing web applications, dazzle your co-workers, and impress your boss! You will go from novice to pro in no time.

Approach

Performance Testing With JMeter 2.9 is a standard tutorial that will help you polish your fundamentals, guide you through various advanced topics, and along the process help you learn new tools and skills.

Who this book is for

This book is for developers, quality assurance engineers, testers, and test managers new to Apache JMeter, or those who are looking to get a good grounding in how to effectively use and become proficient with it. No prior testing experience is required.

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Performance Testing with JMeter 2.9 by Bayo Erinle in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming in Java. We have over one million books available in our catalogue for you to explore.

Information

Performance Testing with JMeter 2.9


Table of Contents

Performance Testing with JMeter 2.9
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why Subscribe?
Free Access for Packt account holders
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
Downloading the color images of this book
Errata
Piracy
Questions
1. 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 JAVA_HOME
On Windows
On Unix
Running JMeter
Command-line options
JMeter's Classpath
Configuring the proxy server
Running in non-GUI mode
Running in server mode
Overriding properties
Tracking errors during test execution
Configuring JMeter
Summary
2. Recording Your First Test
Configuring the JMeter HTTP proxy server
Setting up your browser to use the proxy server
Using a browser extension
Changing the system settings
Running your first recorded scenario
Anatomy of a JMeter test
Test Plan
Thread Groups
Controllers
Samplers
Logic controllers
Test fragments
Listeners
Timers
Assertions
Configuration elements
Pre-processor and post-processor elements
Summary
3. Submitting Forms
Capturing simple forms
Handling checkboxes
Handling radio buttons
Handling file uploads
Handling file downloads
Posting JSON data
Reading JSON data
Using the BSF PostProcessor
Handling the XML response
Summary
4. Managing Sessions
Managing sessions with cookies
Managing sessions with URL rewriting
Summary
5. Resource Monitoring
Basic server monitoring
Setting up Apache Tomcat Server
Configuring Tomcat users
Setting up a monitor controller in JMeter
Monitoring the server with a JMeter plugin
Installing the plugins
Adding monitor listeners to the test plan
Summary
6. Distributed Testing
Remote testing with JMeter
Configuring JMeter slave nodes
Configuring one slave per machine
Configuring the master node to be tested against one slave per machine
Configuring multiple slave nodes on a single box
Configuring the master node to be tested against multiple slave nodes on a single box
Leveraging the cloud for distributed testing
Obtaining your access key, secret key, and key pair
Launching an AWS instance
Executing the test plan
Viewing the results from the virtual machines
Summary
7. Helpful Tips
JMeter properties and variables
JMeter functions
The Regular Expression tester
The Debug sampler
Using timers in your test plan
The Constant timer
The Gaussian random timer
The Uniform random timer
The Constant throughput timer
The Synchronizing timer
The Poisson random timer
The JDBC Request sampler
Setting up an H2 database
Configuring a JDBC Connection Configuration component
Adding a JDBC Request sampler
A Dummy sampler
The JSON Path Extractor element
Handling RESTful web services
Summary
Index

Performance Testing with JMeter 2.9

Copyright © 2013 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: July 2013
Production Reference: 1200713
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78216-584-2
www.packtpub.com
Cover Image by Suresh Mogre ()

Credits

Author
Bayo Erinle
Reviewers
Dmitri Nevedrov
Shantonu Sarker
Acquisition Editor
Kevin Colaco
Commissioning Editor
Llewellyn F. Rozario
Technical Editors
Anita Nayak
Sampreshita Maheshwari
Copy Editors
Aditya Nair
Laxmi Subramanian
Project Coordinator
Sherin Padayatty
Proofreader
Stephen Silk
Indexer
Hemangini Bari
Graphics
Abhinash Sahu
Ronak Dhruv
Production Coordinator
Zahid Shaikh
Cover Work
Zahid Shaikh

About the Author

Bayo Erinle is a senior software engineer with over nine years' experience in designing, developing, testing, and architecting software. He has worked in various spectrums of the IT field, including government, finance, and health care. As a result, he has been involved in the planning, development, implementation, integration, and testing of numerous applications, including multi-tiered, standalone, distributed, and cloud-based applications. He is always intrigued by new technology and enjoys learning new things. He currently resides in Maryland, US, and when he is not hacking away at some new technology, he enjoys spending time with his wife Nimota and their three children, Mayowa, Durotimi, and Fisayo.

About the Reviewers

Dmitri Nevedrov has been working in software research and development for many years, primarily focusing on Java, J2EE technology, and performance optimization techniques. He lives in Denver, Colorado.
Shantonu Sarker is a proactive software test engineer with seven years of experience in test automation, develo...

Table of contents

  1. Performance Testing with JMeter 2.9