Condividi tramite


How to: Apply distribution to pacing delay for a user pace test mix model

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 by using the New Load Test Wizard, you can use the Load Test Editor to change the scenario's properties to meet your testing needs and goals.

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.

The Apply Distribution to Pacing Delay property is set by using the Properties window. Load test scenario properties are modified by using the Load Test Editor.

Note

The Apply Distribution to Pacing Delay property applies only if the load test mix is configured based on the user pace. For more information, see Edit text mix models to specify the probability of a virtual user running a test.

The value for the Apply Distribution to Pacing Delay can be set to either true or false:

  • True: The scenario applies normal statistical distribution delays that are specified by the value in the Tests Per User Per Hour column in the Edit Test Mix dialog box. For more information, see Edit text mix models to specify the probability of a virtual user running a test.

    For example, assume that you have Tests Per User Per Hour value in the Edit Test Mix dialog box for the test set to two users per hour. If Apply Distribution to Pacing Delay property is set to True, a normal statistical distribution is applied to the wait time between the tests. The tests will still run two tests per hour, but it will not necessarily be 30 minute delay between them. The first test could run after four minutes and the second test after 45 minutes.

  • False: The tests run at the pace that you specified for the value in the Tests Per User Per Hour column in the Edit Test Mix dialog box. For more information, see Edit text mix models to specify the probability of a virtual user running a test.

    For example, assume that you have Tests Per User Per Hour value in the Edit Test Mix dialog box for the test set to two users per hour. If the Apply Distribution to Pacing Delay property is set to False, you are giving no leeway when your tests run. The test will run every 30 minutes. This makes sure that you execute two tests per hour.

To specify the Apply Distribution to Pacing Delay property setting for a scenario

  1. Open a load test.

    The Load Test Editor appears. The load test tree is displayed.

  2. In the Scenarios folder of the load test tree, select the scenario node you want to apply pacing distribution to.

  3. On the View menu, select Properties Window.

    The categories and properties of the scenario are displayed in the Properties window.

  4. In the property value for the Apply Distribution to Pacing Delay, select either True or False.

  5. Select File > Save. You can now run your load test with the new Apply Distribution to Pacing Delay value.

See also