How to: Edit the Text Mix Model Using the Load Test Editor

How to: Edit the Text Mix Model Using the Load Test Editor

Visual Studio 2010

This topic applies to:

Visual Studio Ultimate

Visual Studio Premium

Visual Studio Professional 

Visual Studio Express

Topic appliesTopic does not applyTopic does not applyTopic does not apply

After you create your load test by using 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.


For a complete list of the load settings properties and their descriptions, see Load Test Scenario Properties.

Using the Load Test Editor, you can change the test mix model in a load test scenario by editing the Test Mix Type property in the Properties window.

The test mix model specifies the probability of a virtual user running a given test in a load test scenario. This lets you simulate load more realistically. Instead of having just one workflow through your applications, you can have several, which is a closer approximation of how end users interact with your applications.

Test Mix Model Options

You can specify one of the following test mix model options for your load test scenario:

  • Based on the total number of tests: Determines which Web performance or unit test is run when a virtual user starts a test iteration. At the end of the load test, the number of times that a particular test was run matches the assigned test distribution. Use this test mix model when you base the test mix on transaction percentages in an IIS log or in production data.

  • Based on the number of virtual users: Determines the percentage of virtual users who will run a particular Web performance or unit test. At any point in the load test, the number of users who are running a particular test matches the assigned distribution. Use this test mix model when you base the test mix on the percentage of users running a particular test.

  • Based on user pace: Over the course of the load test, each Web performance test or unit test is run a specified number of times per users, per hour. Use this test mix model when you want virtual users to run test at a certain pace throughout the load test.

  • Based on sequential order: Each virtual user runs the Web performance or unit tests in the order that the tests are defined in the scenario. The virtual user continues cycling through the tests in this order until the load test is completed.

To change the test mix model in a scenario

  1. Open a load test.

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

  2. In Scenarios folder of the load test tree, click the scenario node for which you want to specify the maximum number of test iterations.

  3. On the View menu, select Properties Window.

    The categories and properties of the scenario are displayed.

  4. In the Test Mix Type property, click the ellipsis button ( ).

    The Edit Test Mix dialog box is displayed.

  5. Click the drop-down list under Test mix model and select the test mix model that you want to use for the scenario.

  6. (Optional) Modify the test mix by using the Add, Remove and Distribute buttons and distribution sliders. For more information, see Editing the Test Mix to Specify Which Web Performance, Unit and Coded UI Tests to Include in a Load Test Scenario.

  7. (Optional) Specify a Web performance and unit test to initialize or end by using the check boxes and selecting the desired tests. For more information, see Emulating Expected Real-World Usage of a Web Site or Application in a Load Test Using a Test Mix Models.

  8. Click OK.

    The Properties window displays the new test mix model for the Test Mix Type property.

  9. After you change the property, click Save on the File menu. You can then run your load test by using the new Test Mix Type value.

Community Additions

© 2015 Microsoft