In order to model the real world while we test our applications for performance most chances we will need to test using the cache located on client’s computers.
Both in “Web Performance Test” and “Load Test” we have the ability to do that, but how does it really works?
In both cases the cache will be saved in memory!
- Web Performance Test: The only requests in the test scenario that will “benefit” from using the Cache are the requests that repeats in the test scenario, for example: getting to home page twice in one scenario.
- Load Test: The first run of the “Virtual User” will save the cache in memory and all the runs that comes after that for the same virtual user will benefit from the cache.
So how do we set the cache in each case?
Web Performance Test
Step 1: Open the recorded “Web Performance Test”
Step 2: The cache is configured per request so choose the required request
Step 3: Open the Properties window of the request
Step 4: Change the “Cache Control” to True
Start running the scenario and benefit from the cache.
Load Test
Step 1: Open the “Load Test”
Step 2: Right Click on the Scenario, in this example “Scenario1” and choose Properties
Step 3: In the Properties window type the required percentage of new users in the “Percentage of New Users” field.
This will define how many Virtual Users will get a memory storage and how many will not get a memory storage.

You can now run the test and start benefit from cache.
Have Fun!!!