This documentation is archived and is not being maintained.

WebTestRequest.Url Property

Gets or sets the URL to the resource used for the request.

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

public string Url { get; set; }

Property Value

Type: System.String
A URL value.

If the setter string can be made into a valid URI object, then this sets the scheme, authority, and path segment of the URI. If there are query string parameters, they will be not be added to the Url property. The query string parameters will replace the value in the QueryStringParameters property.

If the setter string cannot be made into a valid URI object, the URL is used as passed.

Show: