Dela via


ValidationRuleRequiredTag Class

Validates the existence of a specified tag in the response.

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

Syntax

'Declaration
Public Class ValidationRuleRequiredTag _
    Inherits ValidationRule
'Usage
Dim instance As ValidationRuleRequiredTag
public class ValidationRuleRequiredTag : ValidationRule
public ref class ValidationRuleRequiredTag : public ValidationRule
public class ValidationRuleRequiredTag extends ValidationRule

Remarks

This is used to verify that an HTML tag with a particular name is found one or more times in the HTML response.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.TestTools.WebTesting.ValidationRule
    Microsoft.VisualStudio.TestTools.WebTesting.Rules.ValidationRuleRequiredTag

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

ValidationRuleRequiredTag Members

Microsoft.VisualStudio.TestTools.WebTesting.Rules Namespace

Other Resources

How to: Create a Custom Validation Rule

How to: Add a Validation Rule to a Web Test