Automation
We can automate a lot of things and integrate JMeter with other tools.
We will see some examples of automation in this section.
Note
The source code given in the examples has been deliberately simplified to make reading it more enjoyable.
Furthermore, we do not follow best practices (for instance, injectors and tested applications are running on the same server). In the real world, you should replace in OS Process Sampler simple commands by remote ssh calls.
Example 3: Non-Regression Testing of Memory Consumption with EJ JProfiler
In Chapter 7, Load Testing a Website, we saw how to use JProfiler during our technical tests. We will continue to use it in other technical tests, all in an automated way.
We want to create memory dumps of our application at the start of our test and at the end.
This will allow us to ensure that the new version of the tested application does not consume too much memory compared to the old version.
- To check this, we will compare the dumps of the two versions...