Put into Practice with JMeter
It's time to practice.
Example 1: Simulate Realistic Load
For this first example, we will use the Java EE 6 Pet Catalog application (https://netbeans.org/kb/samples/pet-catalog.html):
Note
This application is distributed with NetBeans; installation and configuration instructions are included.
Figure 7.23: Java EE 6 Pet Catalog
In our scenario, we will be looking at the details of the animals available on the site.
The steps of our scenario will be:
- Log in to the site:
Figure 7.24: Connection to the site
- Select and display the details of a cat:
Figure 7.25: Selection of a cat
Figure 7.26: Viewing the details
- Go back to the list:
Figure 7.27: Back to the list
- Show the next page:
Figure 7.28: Display next page
- Select the details of a cat:
Figure 7.29: Selection of a cat
- Let's use the Template Recording with Think Time wizard seen above and save our script (see Chapter 1, Quick Start with JMeter, for more details):
Figure 7.30...