How to: Add a threshold rule using the load test editor
Threshold rules in load tests compare a performance counter value with either a constant value or another performance counter value.
Web performance and load test functionality is deprecated. Visual Studio 2019 is the last version where web performance and load testing will be available. For more information, see the Cloud-based load testing service end of life blog post.
To add a threshold rule
Open a load test.
In the Load Test Editor, expand the Counter Sets node.
Expand one of the Counter Categories in one of the Counter Sets. For example, you can select LoadTest:Scenario. Expand the node.
Right-click one of the counters, for example, User Load, under LoadTest:Scenario. Select Add Threshold Rule.
The Add Threshold Rule dialog box is displayed.
You can choose from two types of rules: Compare Constant and Compare Counter. Select the appropriate type and set the values.
Set the Alert If Over property to True to indicate that exceeding a threshold is a problem, or to False to indicate that falling below a threshold is a problem.