WebTestRequest.ExpectedResponseUrl Property

Gets or sets the expected URL of the response. When a redirect is expected, this URL might differ from the request URL.

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

Syntax

'Declaration
Public Property ExpectedResponseUrl As String
public string ExpectedResponseUrl { get; set; }
public:
property String^ ExpectedResponseUrl {
    String^ get ();
    void set (String^ value);
}
member ExpectedResponseUrl : string with get, set
function get ExpectedResponseUrl () : String
function set ExpectedResponseUrl (value : String)

Property Value

Type: System.String
The expected URL of the response.

Remarks

The value of ExpectedResponseURL is used by the "Response URL" validation rule. The "Response URL" validation rule validates that, during the Web performance test run, redirects occur only if they are expected.

.NET Framework Security

See Also

Reference

WebTestRequest Class

Microsoft.VisualStudio.TestTools.WebTesting Namespace