Share via


Configure load test run settings

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Run settings are a set of properties that influence the way a load test runs. Run settings are organized by categories in the Properties window.

Note

Web performance and load test functionality is deprecated. Visual Studio 2019 is the last version where web performance and load testing will be fully available. For more information, see the Cloud-based load testing service end of life blog post. To reduce the impact on users some minimum support is still available in Visual Studio 2022 Preview 3 or later. Users should also note web performance and load test functionality only supports Internet Explorer which is not available on Windows 11 and some versions of Windows 10. Read more on Internet Explorer Lifecycle policy.

You can have more than one run setting in a load test, however only one of the run settings may be active per run. The other run settings provide a quick way to select an alternative setting to use for subsequent test runs.

The initial run setting is created when you create a load test by using the New Load Test Wizard.

Load Test Run Settings

Tasks

Tasks Associated Topics
Add more run settings to your load test: In addition to the run setting that is created when you run the New Load Test Wizard, you can add more run settings to your load test so that you can run the test under different conditions. - How to: Add additional run settings to a load test
Specify the active run setting to use with the load test: You can select the run setting that you want to use with your load test using the Load Test Editor. The active run setting is identified by the "[Active]" suffix. - How to: Select the active run setting for a load test
Edit run setting properties: You can edit your run setting properties for such things as logging options (see more below), determining the length of the test, warm-up duration, maximum number of error details reported, sampling rate, connection model (web performance tests only), results storage type, validation level and SQL tracing. The run settings should reflect the goals of your load test. - Load test run settings properties
- Changing run setting properties
Specify test iteration count in load test run settings: You can specify the number of times to run all of the web performance and unit tests in all of the scenarios of your load tests by configuring the Test Iterations property. - How to: Specify the number of test iterations in a run setting
Specify the sampling rate for a load test run setting: You can specify how frequently to have the load test collect performance counter data by configuring the Sample Rate property. - How to: Specify the sample rate
Specify the timing details storage option: You can specify how you want the details of the load test saved by configuring the Timing Details Storage property. - How to: Specify the timing details storage property
Specify the test resource retention period: Speed up the test > fix > retest cycle by retaining the test resources for a specified period by setting the Resources Retention Time property. - Retain the resources to speed up load testing
Use context parameters: You can use context parameters to parameterize a string. For example, if your load test contains a web performance test that uses a parameterized web server, you can add a context parameter to the run settings that maps to a different server. - How to: Add context parameters to a run setting
Configuring test logging properties: You can configure how frequently data is written to the log that is associated with your load test run settings. This can be important when you are running a large or complex load test because the log could become several gigabytes.

You can also configure the log file to be automatically saved when your load test fails to help in debugging and analyzing your application.
- Modifying load test logging settings