|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
How to: Add Scenarios to a Load Test
A scenario is used to model how a group of users interacts with a server application. A scenario consists of a load pattern, a test mix, a browser mix, and network mix. A load test can have more than one scenario and a single scenario can contain Web tests and unit tests. By grouping similar settings together, a scenario lets you to group and run tests of a similar nature together.
You create scenarios as you step through the Load Test Wizard. However, any of the settings that you enter in the Load Test Wizard can be modified in the Load Test Editor after the wizard is finished. The Load Test Editor allows you to modify an existing scenario, or to add new scenarios to the load test.
For more information about how to create a load test by using the Load Test Wizard, see Creating Load Tests.
To add a scenario to a load test
Open a load test.
In the Load Test Editor, right-click the load test and then click Add Scenario.
The Add Scenario Wizard appears. The Add Scenario Wizard is a subset of the New Load Test Wizard you used to create your load test. It contains default values for many of the scenario’s settings. You can keep these default values or change them to values more appropriate for the purposes of your load test.
(Optional) In each page of this wizard, you specify details about how you want this scenario to run. For example, specify the load pattern, test mix, browser mix, and network mix. For more information, see About Scenarios.
Click Finish when you are finished making changes.
The scenario’s settings are saved. You can view individual settings of existing scenarios in the Load Test Editor, where you can also make changes without using the Add Scenario Wizard.