How to: Run a Load Test Using Test Controllers and Test Agents Specified in a Test Setting

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

After you have created the load test using New Load Test Wizard, you then run your load test and view how your Web site responds to the load simulation. After you start a load test, you can both monitor it while it is running and analyze it after it has completed by using the Load Test Analyzer. For more information, see Analyzing Load Test Runs.

After you are confident that your test runs well with a light load and for brief durations, you can run your load test on a test controller and test agents. This group of computers generates a simulated load for testing.

Virtual User Limits and Licensing

Visual Studio Ultimate lets you use up to 250 virtual users on a local load test run. If your load testing requires more virtual users, or you want to use remote machines, you must purchase Visual Studio Load Test Virtual User Pack 2010. You can purchase Visual Studio Load Test Virtual User Pack 2010 where you purchased Visual Studio Ultimate. For more information, see Managing Your Virtual User Licenses for Load Testing with a Test Controller and Configuring Test Controllers and Test Agents for Load Testing.

For more information about test controllers and test agents, see Setting Up Test Machines to Run Tests or Collect Data, Installing and Configuring Visual Studio Agents and Test and Build Controllers, and Distributing Load Tests Across Multiple Test Machines Using Test Controllers and Test Agents.

To run a load test on a test controller and test agents

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

  2. On the Test menu, point to Edit Test Settings and then select a test setting.

    The Test Settings dialog box is displayed. For more information, see Create Test Settings to Run Automated Tests from Visual Studio.

  3. Select Roles. From the Test execution method drop-down list, select Remote execution.

  4. From the Controller drop-down list, select the controller. Alternatively, you can type the name of the controller.

  5. Either click Save As and specify a name for a new test settings.

    -or-

    Click Apply to save the changes to the current test settings.

  6. On the Test menu, point to Select Active Test Settings and then select the test settings on the submenu that you just saved.

  7. On the Test menu, click Windows and then click Test List Editor.

    The Test List Editor window appears.

  8. Select the load test to run, right-click it, and then select Run Checked Test.

    Your test runs on the test controller and test agents.

    Note

    You can also run your tests from the Test View window or the Load Test Editor. For more information, see How to: Run a Load Test.

See Also

Tasks

How to: Save and Open Test Results in Visual Studio

How to: Access Load Test Results for Analysis

How to: Specify Test Agents to Use in Load Test Scenarios

How to: Run a Load Test from the Command Line

How to: Configure and Run Scheduled Tests After Building Your Application

Concepts

Running Load Tests

Other Resources

Distributing Load Tests Across Multiple Test Machines Using Test Controllers and Test Agents