Udostępnij za pośrednictwem


ValidationRuleFindText Class

Validates that the specified text exists or does not exist in the text response.

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

Syntax

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

Remarks

Validation rules are executed just after the request is complete. These rules are intended to verify that the request not only returned a valid HTTP response, but the contents of the response matched the expected result.

Inheritance Hierarchy

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

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

ValidationRuleFindText Members

Microsoft.VisualStudio.TestTools.WebTesting.Rules Namespace

Other Resources

How to: Create a Custom Validation Rule

How to: Add an Extraction Rule to a Web Test