How to: Specify Test Mix

A load test contains one or more scenarios. Each scenario contains one or more Web or unit tests. The test mix of a scenario is a combination of two factors: the selection of tests that are contained within the scenario, and the distribution of those tests within the scenario. The test mix should reflect the objectives of your test for a particular scenario.

Note

Distribution is a measure of the probability that a particular test will be selected by a virtual user during a load test run. Distribution is expressed as a percentage. Therefore, the sum of the distribution numbers for all the tests that are contained in a scenario is 100. For example, if a scenario contains only one test, the distribution for that test is 100%.

Specifying Test Mix in the Load Test Wizard

When you create a load test, you specify settings for the load test in the Load Test Wizard. In the Load Test Wizard, you choose existing Web and unit tests to add to the initial scenario. After you have added tests to the scenario, you specify the test mix for the scenario.

For more information, see How to: Launch the Load Test Wizard.

To specify test mix in the Load Test Wizard

  1. On the Test Mix page of the Load Test Wizard, click Add to add tests to the scenario. For more information, see How to: Add Tests to a Load Test Scenario.

  2. Select your preferred test mix by adjusting the sliders in the Distribution column, or by typing the percentage values directly into the % column. For more information, see About the Mix Control.

  3. After you choose the test mix, click Next to continue to the Browser Mix page of the Load Test Wizard.

    Note

    If you have selected only unit tests, you will go to the Counter Sets page of the Load Test Wizard.

Specifying Test Mix for an Existing Load Test

After you have created a load test, you can change the test mix for any of the scenarios.

To specify test mix for an existing load test

  1. Open a load test.

  2. Right-click the scenario whose test mix you want to adjust, and choose Edit Test Mix.

    The Edit Test Mix dialog box is displayed. If necessary, add new tests to the scenario. For more information, see How to: Add Tests to a Load Test Scenario.

  3. Select your preferred test mix by adjusting the sliders in the Distribution column, or by typing the percentage values directly into the % column. For more information, see About the Mix Control.

  4. After you have chosen your preferred mix, click OK.

See Also

Tasks

How to: Launch the Load Test Wizard
How to: Add Tests to a Load Test Scenario
How to: Remove Tests from a Load Test Scenario

Concepts

About Test Mix
About the Mix Control