How to: Select a Load Test Run Setting to Use from the Command-Line
This topic applies to:
Visual Studio Ultimate |
Visual Studio Premium |
Visual Studio Professional |
Visual Studio Express |
---|---|---|---|
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.
To change the run setting from the command-line
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
Run the load test using mstest:
mstest /testcontainer:loadtest1.loadtest
See Also
Tasks
How to: Add Additional Run Settings to a Load Test
How to: Select the Active Run Setting for a Load Test
Concepts
Specifying the Counter Sets for Computers in a Load Test