Click to Rate and Give Feedback

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Team Test API
ValidateResponseUrl Class

A validation rule validates that a redirect occurs during the run of the Web test if and only if the redirect was expected.

Namespace:  Microsoft.VisualStudio.TestTools.WebTesting.Rules
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
Visual Basic (Declaration)
Public Class ValidateResponseUrl _
    Inherits ValidationRule
Visual Basic (Usage)
Dim instance As ValidateResponseUrl
C#
public class ValidateResponseUrl : ValidationRule
Visual C++
public ref class ValidateResponseUrl : public ValidationRule
JScript
public class ValidateResponseUrl extends ValidationRule

A validation rule compares the value of the ExpectedResponseURL property on the Web test request with the actual response URL, after following any redirects. Then, the rule fails if the two URLs do not match. This validation rule is automatically added to a Web test that you create by using the Web test recorder.

System..::.Object
  Microsoft.VisualStudio.TestTools.WebTesting..::.ValidationRule
    Microsoft.VisualStudio.TestTools.WebTesting.Rules..::.ValidateResponseUrl
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker