Export (0) Print
Expand All

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. For more information, see, see How to: Add Additional Run Settings to a Load Test.

Requirements

  • Visual Studio Ultimate

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

Show:
© 2014 Microsoft