|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
A validation rule validates that a redirect occurs during the run of the Web test if and only if the redirect was expected.
Assembly: Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
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.