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

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 create your load test by using the New Load Test Wizard, you can use the Load Test Editor to change the scenarios properties to meet your testing needs and goals. For more information, see How to: Create a New Load Test Using the New Load Test Wizard.

Note

For a full list of the load test scenario properties and their descriptions, see Load Test Scenario Properties.

The agents are specified by using the Load Test Editor to change the Agents to Use property in the Properties window.

You can specify the agents that you want your scenario to use if you are using controllers and agents to run the load test remotely. For example, you might want to specify a specific set of agents so that you maintain consistency when you analyze performance trends. Also, agents may be geographically distributed, so that an affinity exists between which scripts they run and where the agent is located.

Tip

Rather than physically putting an agent at the remote site, another option is to use network emulation to emulate the slow network. For more information, see Specifying Virtual Network Types in a Load Test Scenario and Specifying Virtual Network Types in a Load Test Scenario.

For more information, see Distributing Load Tests Across Multiple Test Machines Using Test Controllers and Test Agents.

Another reason is that some, but not all, agents might have software installed on them that is required for a particular scenario.

You can control agent selection for a given test run by using roles in test settings. For more information, see Setting Up Machines and Collecting Diagnostic Information Using Test Settings and Walkthrough: Using a Test Controller and Test Agents in a Load Test.

If a test agent machine has more than 75 percent CPU utilization or has less than 10 percent of physical memory available, add more agents to your load test to make sure that the agent machine does not become the bottleneck in your load test.

To specify the agents to use for a scenario

  1. Open a load test.

    The Load Test Editor appears. The load test tree is displayed.

  2. In the load test trees Scenarios folder, click the scenario node for which you want to specify the agents to use.

  3. On the View menu, select Properties Window.

    The categories and properties of the scenario are displayed in the Properties window.

  4. In the text box for the Agents to Use property, type the list of agents on which the scenario may run.

    Agents must be separated by commas, for example "Agent1, Agent2, Agent3". Leaving the property blank specifies that the scenario should use all available agents.

    Note

    The Agents to Use property is ignored for local runs. For remote runs, if none of the agents specified in Agents to Use exist, tests in the scenario will not run.

  5. After you change the property, click Save on the File menu. You can then run your load test by using the new Agents to Use value.

See Also

Tasks

How to: Create a Scenario Used to Model User Activities, Tests, Browsers and Networks Using the New Load Test Wizard

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

Concepts

Load Test Scenario Properties

Other Resources

Editing Load Test Scenarios Using the Load Test Editor

Creating Load Tests Using the New Load Test Wizard

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