How to: Create a Test Mix Model in the New Load Test Wizard
This topic applies to:
Visual Studio Ultimate
Visual Studio Premium
Visual Studio Professional
Visual Studio Express
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 workflows, which is a closer approximation of how end-users interact with your applications. For more information, see Emulating Expected Real-World Usage of a Web Site or Application in a Load Test Using a Test Mix Models and Editing Test Mix Models to Specify the Probability of a Virtual User Running a Test.
When you create a load test, you specify settings for the load test in the New Load Test Wizard. For more information, see How to: Create a New Load Test Using the New Load Test Wizard.
To specify test mix model in the New Load Test Wizard
On the Test Mix Model page of the New Load Test Wizard, select the test mix model to use in your load test scenario. You can pick one of the following:
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 are basing 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 are basing the test mix on the percentage of users who are 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 complete.
After you choose the test mix model, click Next to continue to the Test Mix page of the New Load Test Wizard.
You can change the load pattern for a scenario later by using the Load Test Editor. For more information, see How to: Change the Load Pattern.