Best Practices
Now that we know how to run a test, we will discuss some best practices to get the most out of JMeter.
These best practices come from:
- The author's experience
- The JMeter wiki
- Ubik-Ingenierie's blog (http://www.ubik-ingenierie.com/blog/ – with the kind permission of its authors)
Have Well-Prepared Injectors
As we have seen in Chapter 5, Preparing the Test Environment (Injectors and Tested Systems), it is important to prepare and calibrate our injectors.
Generating Reports at the End of the Test
The generation of reports during a load test can be very expensive and can introduce problems.
It is therefore strongly recommended to generate them only at the end of a test.
To monitor your test, the best solution is to set up the Backend Listener element to give real-time feedback on the test through third-party components such as Grafana and InfluxDB.
Remove all other listeners from your script before running the load test.
If you still want to use one or...