Поделиться через


ValidationRuleFindText.PassIfTextFound Property

Gets or sets a value that indicates whether to pass or fail the test if it is found or not.

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

Syntax

'Declaration
Public Property PassIfTextFound As Boolean
public bool PassIfTextFound { get; set; }
public:
property bool PassIfTextFound {
    bool get ();
    void set (bool value);
}
member PassIfTextFound : bool with get, set
function get PassIfTextFound () : boolean
function set PassIfTextFound (value : boolean)

Property Value

Type: System.Boolean
true if the test passes when the text is found; otherwise, false if the test passes when the text is not found. The default is true.

.NET Framework Security

See Also

Reference

ValidationRuleFindText Class

Microsoft.VisualStudio.TestTools.WebTesting.Rules Namespace