Udostępnij za pośrednictwem


ValidationLevel Enumeration

Used to identify the importance of a validation rule that is run in a load test.

Namespace:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Syntax

'Declaration
Public Enumeration ValidationLevel
'Usage
Dim instance As ValidationLevel
public enum ValidationLevel
public enum class ValidationLevel
public enum ValidationLevel

Members

Member name Description
Low Load test invokes validation rules with a Low setting. This equals 0.
Medium Load test invokes validation rules with a Low or Medium setting. This equals 1.
High Load test invokes all validation rules. This equals 2.

Remarks

These enumeration values are ordinal so that they may be compared in code by "less than" and "greater than" operators. ValidationLevel is used in load tests to determine which validation rules are run.

See Also

Reference

Microsoft.VisualStudio.TestTools.WebTesting Namespace

Other Resources

How to: Add a Validation Rule to a Web Test

How to: Create a Custom Validation Rule