How to: Specify the number of test iterations in a load test run setting

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

After you create your load test with the New Load Test Wizard, you can use the Load Test Editor to change the scenarios properties to meet your testing needs and goals. For more information, see Walkthrough: Create and run a load test.

Using the Load Test Editor, you can edit the Test Iterations property of a run settings value in the Properties window. The Test Iterations property specifies the number of iterations to run on all the web performance and unit tests in all the scenarios in a load test using the Load Test Editor.

Note

For a complete list of the run settings properties and their descriptions, see Load test run settings properties.

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.

To specify the number of test iterations in a run setting

  1. Open a load test.

    The Load Test Editor appears and displays the load test tree.

  2. In the load test tree, in the Run Settings folder, choose a run setting.

  3. On the View menu, select Properties Window to view the load run setting's categories and properties.

  4. Set the Use Test Iterations property to True.

  5. In the Test Iterations property, enter a number that indicates the number of test iterations to run during the load test.

  6. After you have finished changing the property, choose Save on the File menu. You can then run your load test using the new Test Iterations value.

See also