Book Image

Performance Testing with JMeter 2.9

By : Bayo Erinle
Book Image

Performance Testing with JMeter 2.9

By: Bayo Erinle

Overview of this book

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 (14 chapters)

Configuring the JMeter HTTP proxy server


The first step is to configure the proxy server in JMeter. To do this, we follow the following steps:

  1. Start JMeter.

  2. Add a Thread Group by right-clicking on Test Plan and navigating to Add | Threads (User) | Thread Group.

  3. Add the HTTP Proxy Server element by right-clicking on WorkBench and navigating to Add | Non-Test Elements | HTTP Proxy Server.

  4. Change the port to 7000 (under Global Settings).You can use a different port if you want to. What is important is to choose a port that is not currently used by an existing process on the machine. The default is 8080.

  5. Go to Test Plan | Thread Group under HTTP Proxy Server (under the Test plan content | Target Controller section). This allows the recorded actions to be targeted to the thread group we created in step 2.

  6. Choose the option Put each group in a new transaction controller under HTTP Proxy Server (under Test plan content | Grouping section). This allows you to group a series of requests as constituting...