Поделиться через


How to: Add Web Performance, Unit and Coded UI Tests to a Load Test Scenario Using the Load Test Editor

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

A load test contains one or more scenarios, each of which contains one or more Web performance, unit, or coded UI tests in a test mix. The tests that are included in a scenario should reflect the objectives of that scenario.

Adding New Tests to a Test Mix in an Existing Scenario

When you create a new scenario by using the New Load Test Wizard, you can specify the Web performance and unit tests to add to the test mix of the new scenario. For more information, see How to: Create a Test Mix in the New Load Test Wizard.

You can add more Web performance and unit tests to the text mix of the scenario by using the Load Test Editor.

Adding a test to an existing load test

To add more tests to an existing scenario

  1. Open a load test.

  2. In the Load Test Editor, right-click an existing scenario and then click Add Tests.

    The Add Tests dialog box is displayed. All Web performance, unit, and coded UI tests in your solution that are not already in your scenario are available to add to the scenario.

  3. In the Available tests pane, select the Web performance, unit, and coded UI tests that you want to add. Click the right arrow to add the tests to the Selected tests pane.

  4. When you finish adding tests, click OK.

    The tests are added to the test mix. A new distribution is assigned automatically to the tests in the test mix.

See Also

Tasks

How to: Create a Test Mix in the New Load Test Wizard

How to: Remove Web Performance Tests, Unit and Coded UI Tests from a Load Test Scenario Using the Load Test Editor

Concepts

About the Mix Control for Load Tests

Other Resources

Editing Load Test Scenarios Using the Load Test Editor