Share via


How to: Select a Load Test Run Setting to Use from the Command-Line

 

A load test can contain one or more run settings, which are a set of properties that influence the way a load test runs. Run settings are organized by categories in the Properties window. When a load test is run, it uses the run setting that is currently set as active. For more information, see How to: Add Additional Run Settings to a Load Test.

If your load test contains only one run setting, it is always the active node. If your load test contains multiple run settings nodes, you can select the one to use when you run a load test from the command-line. See How to: Add Additional Run Settings to a Load Test.

Requirements

  • Visual Studio Enterprise

To change the run setting from the command-line

  1. If you want to use different run settings from the command line to take advantage of the context parameter strategy, use the following set command:

    Set Test.UseRunSetting= CorporateStagingWebServer

  2. Run the load test using mstest:

    mstest /testcontainer:loadtest1.loadtest

See Also

Configuring Load Test Run Settings
Specifying the Counter Sets and Threshold Rules for Computers in a Load Test
How to: Add Additional Run Settings to a Load Test
How to: Select the Active Run Setting for a Load Test