The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Configuring Load Test Run Settings


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.

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


  • Visual Studio Enterprise

The initial run setting is created when you create a load test by using the New Load Test Wizard. For more information, see Creating load tests.

Load Test Run Settings
Load Test Run Settings

TasksAssociated 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 tests 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 you 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. For more information, seeConsiderations for Load Testing.

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
Configuring SQL properties to collect SQL Server data: You can use the SQL tracing tool in your load tests to help you monitor and improve the performance of your Web applications that use SQL Server to store data.- Collecting SQL Trace Data to Monitor and Improve Performance in Load Tests


Testing for Continuous Delivery with Visual Studio 2012 – Chapter 6: A Testing Toolbox

Creating and Editing Load Tests
Running Load Tests