Preparing the Test Environment (Injectors and Tested Systems)
Introduction
Now that we have finished our scripts, it is important to prepare the test environment. This consists of the injectors and the system under test. If these two tasks are not performed properly, the accuracy of the load test results will degrade.
Setting Up the Injectors
Without a good injection, our load tests would be meaningless.
Never Host Injectors on the Same Server as the Tested System
Let's say that you think the installation of dedicated injectors takes too much time, so you decide to install JMeter on one of the servers of the system being tested. In your script, you replace the host with localhost and you launch your load test.
What seemed to be a good idea at the start will turn into a waste of time afterward!
Having the injector on one of the servers of the system being tested is strongly discouraged for several reasons:
- The load consumed by the tested application can...