How to: Change the Web Test Run Settings

You can change the run settings for your Web tests. When changed in the Web Test Viewer, the run settings apply to one Web test run. They do not persist when you save the test.

In order to persist any changes, you must change the properties on the Web test tab of run configuration dialog box. If you change the properties in the run configuration, the properties persist and apply to each Web test in this test project. For more information, see How to: Specify a Test Run Configuration.

The run settings in the Web Test Viewer consist of the following choices:

Number of run iterations

You can set a fixed number of times for your test to iterate.

Optionally, if you have used data binding, you can indicate a number based on the data source.

Browser type

You can simulate different browser types for tests. To create the different browser types, Visual Studio Team System Test Edition uses a collection of HTTP headers to simulate a particular browser, such as Internet Explorer 6 or Netscape 6.

For more information, see About Browser Mix.

Network type

You can simulate a different network types for tests. To create the different network types, Test Edition uses a simulation of network bandwidth at the application layer, for example, LAN and Dialup 56K. It does not simulate latency.

You can simulate a different network types for tests. For more information, see About Network Mix.

Simulate think times

You can select Simulate think times when you run a Web test. Think time is the time spent by a user perusing a Web page, including viewing the page and determining the next action. Think time does not include the time that is required for a page to load.

For more information, see About Think Times.

To change the run settings of a Web test

  1. Open a Test project that contains a Web test.

    For more information about how to create a test project, see How to: Create a Test Project.

  2. From the Test project, open a Web test.

    For more information about how to create a Web test, see Creating a Web Test.

  3. In the Web Test Editor, click the Run button.

    The Web Test Viewer opens with your Web test ready to run.

  4. Click the Edit Run Settings button.

    The Web Test Run Settings dialog box is displayed.

  5. Make changes to the run settings and then click OK.

  6. In the Web Test Viewer, click the Run button.

    — or —

    Click the Step button to step through your test.

  7. You can view the results in the tabbed pane. If you have more than one iteration of your run, you see each run in the Request pane of the Web Test Viewer. For more information, see Running and Viewing a Web Test.

See Also

Tasks

How to: Specify a Test Run Configuration

How to: Change the Run Settings

Concepts

About Browser Mix

About Network Mix

About Think Times