Load Testing with Apache JMeter | Running the Test
Step 4: Select the format of the results
This is done by again right clicking on the Thread Group node. Then select Add / Listener / View Results Tree:
This will give us a page containing the results of every request:
Step 5: Run the test plan
You do this by selecting Run from the menu, and then Start (or Ctrl-R):
The test plan will now be repeated 10 times.
Step 6: View the results
When the run has completed the results can be seen in the Results Tree:
Here I’ve selected the first request in the upper pane. Below you can see the request that was generated, and the results, which is an HTML page with the text "Hello World!" (only the first part of the HTML is shown in the figure). We can also see the time it took to process the request: 110 milliseconds. Most of the other requests used less time than this.
Step 7: Add more listeners (optional)
One of the nice things about JMeter is its variety of listeners. If we want a tabular view of the requests we can add a View Results in Table listener. Here’s what it would display after 10 new iterations:
If we only want a summary of the run we can add an Aggregate Report listener:
Here’s how our test plan looks now with these two extra listeners added:
Step 8: Save the Test Plan
Don’t forget to save your test plan for later use. Select File from the menu, and then Save Test Plan (or Ctrl-S). Actually you should save the test plan before you run it just in case something runs wild.