Performance Testing with JMeter 2.9

Book description

If you want to use JMeter for performance testing your software products, this book is a great starting point. You’ll get a great grounding in all the fundamentals and gain a wealth of new skills along the way.

  • Create realistic and maintainable scripts for web applications
  • Use various JMeter components to achieve testing goals
  • Removal of unnecessary errors and code compilation
  • Acquire skills that will enable you to leverage the cloud for distributed testing
  • Effectively monitor server resources during performance testing
  • Extend JMeter functionality by installing plugins

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.

Table of contents

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

Product information

  • Title: Performance Testing with JMeter 2.9
  • Author(s):
  • Release date: July 2013
  • Publisher(s): Packt Publishing
  • ISBN: 9781782165842