How to: Specify the Percentage of Virtual Users that Use Web Cache Data
After you create your load test with the New Load Test Wizard, you can change the scenarios properties to meet your testing needs and goals by using the Load Test Editor. See Step 2.1 - Choosing a Load Pattern in the New Load Test Wizard. For a full list of the load test scenario properties and their descriptions, see Load Test Scenario Properties.
- Visual Studio Enterprise
The Percentage of new Users property is set in the Properties window. You edit load test scenario properties in the Load Test Editor.
The Percentage of new Users property affects the way in which the load test simulates the caching that would be performed by a Web browser. By default, the Percentage of new Users property is set to 0%. If the value for the Percentage of new Users property is set to 100%, each Web performance test run in a load test is treated like a first time user to the Web site who does not have any content from the Web site in their browser cache from previous visits. Thus, all requests in the Web test, including all dependent requests such as images, are downloaded.
When the same cacheable resource is requested more than once in a web test, the requests are not downloaded.
If you are load testing a Web site that has a significant number of return users who are likely to have images and other cacheable content cached locally, then a setting of 100% for Percentage of new Users property will generate more download requests than would occur in real-world usage. In this case, you should estimate the percentage of visits to your Web site that are from first time users of the web site, and set Percentage of new Users property accordingly.
Open a load test.
The Load Test Editor appears. The load test tree is displayed.
In the load test trees Scenarios folder, choose the scenario node you want to specify the agents to use for.
On the View menu, select Properties Window.
The scenario's categories and properties are displayed in the Properties window.
Set the value for the Percentage of new Users property by entering a number for the percentage of new users.
After you have finished changing the property, choose Save on the File menu. You can then run your load test using the new Percentage of new Users value.
Editing Load Test Scenarios
Creating load tests
Creating Additional Scenarios for an Existing Load Test
Distributing Load Test Runs Across Multiple Test Machines Using Test Controllers and Test Agents
How to: Run a Load Test Using Test Controllers and Test Agents Specified in a Test Setting
Load Test Scenario Properties
Editing Load Patterns to Model Virtual User Activities