This book is focussed on learning and understanding JMeter. It starts with a basic introduction and installation, followed by using JMeter to test web applications. It proceeds to show how to use JMeter to perform load testing and also to test the functional behavior of the target web application. The discussion continues to include testing servers other than web application servers, and demonstrates the use of some of JMeters built-in functions. This book aims to give readers an introductory view of JMeter, and gives a brief and realistic overview to those researching for an ideal testing tool to use in testing projects. The book is written in a straightforward, clear way, with plenty of step-by-step instructions and illustrative screenshots. The ideal readers or users of this book are experienced or novice testers who have been testing manually and now would like to automate their tests. Those testers who are already automating their testing using other tools or testing software may also want to use this book as they look for alternatives. This book would also be a good point for test Managers/Leaders to start doing research on the test automation tool that may best suit their testing needs and of course, their budget JMeters target audience is the testing community, which is generally not the hangout of developers or technical people. Almost anything one would like to do in HTTP testing will be supported by JMeter without requiring any programming. The user need not have much technical knowledge to work with JMeter. It has a simple-to-use and intuitive drag-and-drop style GUI that helps any non-technical user to get started.
Author(s): Emily H. Halili
Publisher: Packt Publishing
Year: 2008
Language: English
Pages: 138
Apache JMeter......Page 1
Table of Contents......Page 6
Preface......Page 10
Automated Testing......Page 16
Why Automate Testing?......Page 17
To Automate or Not to Automate—Some Hints......Page 18
How Much Does it Cost?......Page 21
Summary......Page 22
Introduction to JMeter......Page 24
The Features—What JMeter Can Do for You......Page 25
The Look-How-Easy-to-Use GUI......Page 27
The Requirements......Page 30
Summary......Page 31
Installing JMeter......Page 32
Running JMeter......Page 33
Summary......Page 34
What Is a Test Plan?......Page 36
Thread Group......Page 38
Controllers......Page 40
Samplers......Page 41
Logic Controllers......Page 43
Listeners......Page 44
Timers......Page 46
Assertions......Page 47
Configuration Elements......Page 49
Pre-Processor Elements......Page 50
Building a Test Plan That Tests Web Sites......Page 51
Summary......Page 58
Load/Performance Testing of Websites......Page 60
Some Helpful Tips to Get Better Results......Page 61
Using JMeter Components......Page 62
Recording HTTP Requests......Page 63
Creating the Test Plan......Page 72
Adding Timers......Page 74
Interpreting the Results......Page 77
Remote Testing with JMeter......Page 80
Monitoring the Server's Performance......Page 81
Summary......Page 83
Preparing for Functional Testing......Page 84
Using JMeter Components......Page 85
Configuring the Proxy Server......Page 88
Adding HTTP Request Default......Page 89
Let the Recording Begin.........Page 90
Adding User Defined Variables......Page 91
Running the Test......Page 93
Summary......Page 94
Advanced Features......Page 96
Extending the Web Test Plan......Page 97
Using the ForEach Controller......Page 98
Using the While Controller and the StringFromFile Function......Page 100
Using the Loop Controller and the StringFromFile Function......Page 101
Using Regular Expressions......Page 102
Testing a Database Server......Page 106
Testing an FTP Server......Page 108
Summary......Page 109
JMeter and Beyond......Page 110
Summary......Page 115
Component Description......Page 116
Useful References......Page 124
Weblogs/Articles on Experience of Using JMeter......Page 125
Glossary......Page 126
Index......Page 134