Compartir a través de


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.

Requirements

  • Visual Studio Ultimate

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

Load Test Run Settings

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.

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.

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.

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.

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.

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.

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.

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, see Considerations 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.

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.

External resources

Guidance

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

See Also

Concepts

[retired] Running Load Tests

Other Resources

Creating and Editing Load Tests