How to: Specify the Percentage of Virtual Users that Use Web Cache Data

This topic applies to:

Visual Studio Ultimate

Visual Studio Premium

Visual Studio Professional 

Visual Studio Express

Topic applies Topic does not apply Topic does not apply Topic does not apply

After you create your load test with the New Load Test Wizard, you can use the Load Test Editor to change the scenarios properties to meet your testing needs and goals. For more information, see How to: Create a New Load Test Using the New Load Test Wizard.

Note

For a full list of the load test scenario properties and their descriptions, see Load Test Scenario Properties.

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.

Note

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.

To specify the agents to use for a scenario

  1. Open a load test.

    The Load Test Editor appears. The load test tree is displayed.

  2. In the load test trees Scenarios folder, click the scenario node you want to specify the agents to use for.

  3. On the View menu, select Properties Window.

    The scenario's categories and properties are displayed in the Properties window.

  4. Set the value for the Percentage of new Users property by entering a number for the percentage of new users.

  5. After you have finished changing the property, click Save on the File menu. You can then run your load test using the new Percentage of new Users value.

See Also

Tasks

How to: Create a Scenario Used to Model User Activities, Tests, Browsers and Networks Using the New Load Test Wizard

How to: Run a Load Test Using Test Controllers and Test Agents Specified in a Test Setting

Concepts

Load Test Scenario Properties

Other Resources

Editing Load Test Scenarios Using the Load Test Editor

Creating Load Tests Using the New Load Test Wizard

Distributing Load Tests Across Multiple Test Machines Using Test Controllers and Test Agents

Editing Load Patterns to Model Virtual User Activities