Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ValidateResponseUrl::Validate Method (Object^, ValidationEventArgs^)

 

Validate is called with the test case context and transaction context. These allow the rule to examine both the request and the response and make sure that the data matches the required values.

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

public:
virtual void Validate(
	Object^ sender,
	ValidationEventArgs^ e
) override

Parameters

sender
Type: System::Object^

The source of the event.

e
Type: Microsoft.VisualStudio.TestTools.WebTesting::ValidationEventArgs^

A ValidationEventArgs that contains the event data.

If the response does not match the required values, the ValidationEventArgs property IsValid is set to false, and the ValidationEventArgs property Message is set to a string that explains the problem.

If the response is valid, the ValidationEventArgs property IsValid is set to true.

Return to top
Show: