Performance Testing with JMeter - Second Edition
eBook - ePub

Performance Testing with JMeter - Second Edition

Bayo Erinle

Partager le livre
  1. 164 pages
  2. English
  3. ePUB (adapté aux mobiles)
  4. Disponible sur iOS et Android
eBook - ePub

Performance Testing with JMeter - Second Edition

Bayo Erinle

DĂ©tails du livre
Aperçu du livre
Table des matiĂšres
Citations

À propos de ce livre

About This Book

  • Create realistic and maintainable scripts for web applications
  • Effectively use various JMeter components to achieve testing goals
  • Leverage the cloud for distributed testing

Who This Book Is For

This book is great 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 JMeter. No prior testing experience is required.

Foire aux questions

Comment puis-je résilier mon abonnement ?
Il vous suffit de vous rendre dans la section compte dans paramĂštres et de cliquer sur « RĂ©silier l’abonnement ». C’est aussi simple que cela ! Une fois que vous aurez rĂ©siliĂ© votre abonnement, il restera actif pour le reste de la pĂ©riode pour laquelle vous avez payĂ©. DĂ©couvrez-en plus ici.
Puis-je / comment puis-je télécharger des livres ?
Pour le moment, tous nos livres en format ePub adaptĂ©s aux mobiles peuvent ĂȘtre tĂ©lĂ©chargĂ©s via l’application. La plupart de nos PDF sont Ă©galement disponibles en tĂ©lĂ©chargement et les autres seront tĂ©lĂ©chargeables trĂšs prochainement. DĂ©couvrez-en plus ici.
Quelle est la différence entre les formules tarifaires ?
Les deux abonnements vous donnent un accĂšs complet Ă  la bibliothĂšque et Ă  toutes les fonctionnalitĂ©s de Perlego. Les seules diffĂ©rences sont les tarifs ainsi que la pĂ©riode d’abonnement : avec l’abonnement annuel, vous Ă©conomiserez environ 30 % par rapport Ă  12 mois d’abonnement mensuel.
Qu’est-ce que Perlego ?
Nous sommes un service d’abonnement Ă  des ouvrages universitaires en ligne, oĂč vous pouvez accĂ©der Ă  toute une bibliothĂšque pour un prix infĂ©rieur Ă  celui d’un seul livre par mois. Avec plus d’un million de livres sur plus de 1 000 sujets, nous avons ce qu’il vous faut ! DĂ©couvrez-en plus ici.
Prenez-vous en charge la synthÚse vocale ?
Recherchez le symbole Écouter sur votre prochain livre pour voir si vous pouvez l’écouter. L’outil Écouter lit le texte Ă  haute voix pour vous, en surlignant le passage qui est en cours de lecture. Vous pouvez le mettre sur pause, l’accĂ©lĂ©rer ou le ralentir. DĂ©couvrez-en plus ici.
Est-ce que Performance Testing with JMeter - Second Edition est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă  Performance Testing with JMeter - Second Edition par Bayo Erinle en format PDF et/ou ePUB ainsi qu’à d’autres livres populaires dans Informatica et Controllo qualitĂ  e test. Nous disposons de plus d’un million d’ouvrages Ă  dĂ©couvrir dans notre catalogue.

Informations

Année
2015
ISBN
9781784395346

Performance Testing with JMeter Second Edition


Table of Contents

Performance Testing with JMeter Second Edition
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 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
2. 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
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 BSF PostProcessor
Handling XML responses
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
Configuring multiple slave nodes on a single box
Configuring the master node
Leveraging the cloud for distributed testing
Obtaining your access key, secret key, and key pair
Launching the AWS instance
Executing the test plan
Viewing the results from the virtual machines
Using cloud services
Using Flood.io
Using BlazeMeter
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 the H2 database
Configuring a JDBC Connection Configuration component
Adding a JDBC Request sampler
Using a MongoDB Sampler
A Dummy Sampler
The JSON Path Extractor element
Handling RESTful web services
Summary
Index

Performance Testing with JMeter Second Edition

Copyright © 2015 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
Second edition: April 2015
Production reference: 1200415
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78439-481-3
www.packtpub.com

Credits

Author
Bayo Erinle
Reviewers
Vinay Madan
Satyajit Rai
Ripon Al Wasim
Commissioning Editor
Pramila Balan
Acquisition Editor
Llewellyn Rozario
Content Development Editor
Adrian Raposo
Technical Editors
Tanvi Bhatt
Narsimha Pai
Mahesh Rao
Copy Editors
Charlotte Carneiro
Pranjali Chury
Rashmi Sawant
Project Coordinator
Kinjal Bari
Proofreaders
Simran Bhogal
Safis Editing
Joanna McMahon
Indexer
Monica Ajmera Mehta
Production Coordinator
Arvindkumar Gupta
Cover Work
Arvindkumar Gupta

About the Author

Bayo Erinle is an author and senior software engineer with over 11 years of experience in designing, developing, testing, and architecting software. He has worked in various spectrums of the IT field, including government, commercial, 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 passionate about programming, performance, scalability, and all things technical. 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.
He also authored Performance Testing with JMeter 2.9 (first edition) and JMeter Cookbook, both by Packt Publishing.

Table des matiĂšres