Share via


WebTestRequest Members

Include Protected Members
Include Inherited Members

Represents an HTTP request that will be sent to a Web server.

The WebTestRequest type exposes the following members.

Constructors

 

Name

Description

Public method

WebTestRequest

Overloaded. These constructors initialize a new instance of the WebTestRequest class.

Top

Methods

 

Name

Description

Public method

Clone

Makes a deep copy of the WebTestRequest object. (Overrides WebTestItem.Clone().)

Public method

Equals

Determines whether the specified Object is equal to the current Object. (Inherited from Object.)

Protected method

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)

Public method

GetHashCode

Serves as a hash function for a particular type. (Inherited from Object.)

Public method

GetType

Gets the type of the current instance. (Inherited from Object.)

Public method

InternalSetOutcome

Protected method

MemberwiseClone

Creates a shallow copy of the current Object. (Inherited from Object.)

Public method

ToString

Returns a string that represents the current object. (Inherited from Object.)

Top

Properties

 

Name

Description

Public property

Body

Gets or sets the body of this request.

Public property

Cache

Gets or sets a value that indicates whether to simulate browser caching for the request.

Public property

ClientCertificates

Gets or sets a reference to allow users to authenticate using X.509 SSL certificates.

Public property

ContentLength

Public property

Cookies

Gets a collection of cookies.

Public property

CorrelationExtractionRuleReferences

Gets the collection of references to extraction rules that are used to correlate dynamic parameters.

Public property

DependentRequests

Gets the collection of dependent requests.

Public property

Encoding

Gets or sets the Encoding format.

Public property

ExpectedHttpStatusCode

Gets or sets the HTTP status code that is expected for this request.

Public property

ExpectedResponseUrl

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

Public property

ExtractionRuleReferences

Gets the collection of references to extraction rules that are defined for the request.

Public property

FollowRedirects

Gets or sets a value that indicates whether to automatically follow redirects.

Public property

HasCookies

Gets a value that indicates whether the request has cookies.

Public property

HasDependentRequests

Gets a value that indicates whether the request has dependent requests.

Public property

HasHeaders

Gets a value that indicates whether the request has HTTP headers.

Public property

HasQueryStringParameters

Gets a value that indicates whether the request has querystring parameters.

Public property

Headers

Gets the collection of HTTP headers for the request.

Public property

IsRedirectFollow

Gets a value that indicates whether the request was created as the result of following a redirect.

Public property

Method

Gets or sets the method to use for the request.

Public property

Outcome

Gets or sets the Pass or Fail outcome of the Web test request.

Public property

ParseDependentRequests

Gets or sets a value that indicates whether to automatically fetch dependent requests found in the response body.

Public property

QueryStringParameters

Gets the list of query string parameters for the request.

Public property

RecordResult

Gets or sets a value that indicates whether individual statistics and result data are tracked for this request.

Public property

ResponseTimeGoal

Gets or sets the response time goal for a particular page.

Public property

SendChunked

Gets or sets a value that indicates whether the user can send a chunked request body.

Public property

ThinkTime

Gets or sets a value representing the think time to wait after the response is received.

Public property

Timeout

Gets or sets a value that indicates the amount of time to wait for this request before timing out.

Public property

Url

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

Public property

UrlWithQueryString

Gets the URL to the resource that is used for the request, including the query string.

Public property

ValidationRuleReferences

Gets the collection of references to validation rules that are defined for the request.

Public property

Version

Gets or sets the HTTP version of the request.

Public property

WebTestRequestPluginReferences

Gets the collection of references to the Web test request plug-ins that are defined on the request.

Top

Events

 

Name

Description

Public event

ExtractValues

Occurs after the ValidateResponse event.

Public event

PostRequest

Occurs after the ValidateResponse and the ExtractValues events.

Public event

PreRequest

Occurs before the request is sent.

Public event

ValidateResponse

Occurs immediately after the response is received.

Top

See Also

Reference

WebTestRequest Class

Microsoft.VisualStudio.TestTools.WebTesting Namespace