Udostępnij za pośrednictwem


WebTest Members

Include Protected Members
Include Inherited Members

Base class for all Web tests. Coded Web tests that are written in C# derive directly from this class.

The WebTest type exposes the following members.

Constructors

 

Name

Description

Protected method

WebTest

Initializes a new instance of a class derived from WebTest class.

Top

Methods

 

Name

Description

Public method

AddCommentToResult

Adds a comment to the Web test result following the most recently completed Web test request, transaction, or included Web test.

Public method

AddDataSource

Overloaded.

Public method

AddDataSourceBinding

Defines a binding relationship and adds it to the data source binding collection for the Web test.

Public method

BeginTransaction

Starts a transaction timer with the specified name.

Public method

EndTransaction

Overloaded.

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

GetEnumerator

Gets an Enumerator that enumerates the items in the Web test.

Public method

GetHashCode

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

Public method

GetRequestEnumerator

When overridden in a derived class, returns an IEnumerator<T> interface supporting a simple iteration over a generic collection of WebTestRequest.

Public method

GetType

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

Public method

IncludeWebTest

Overloaded.

Public method

InitializeDataBinding

Adds data source and data binding information from attributes to the current instance.

Public method

InternalSetOutcome

Protected method

MemberwiseClone

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

Public method

MoveDataTableCursor

Advances the cursor in the data table to the next record.

Public method

Stop

Stops the current Web test.

Public method

ToString

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

Top

Properties

 

Name

Description

Public property

Context

Gets or sets an object that contains context variables that are available to the Web test at run time.

Public property

DataSources

Gets the collection of data sources defined for the Web test.

Public property

Guid

Gets or sets a Globally Unique Identifier that uniquely identifies each instance of a WebTest.

Public property

InheritFromWebTest

Gets the WebTest object for the parent Web test when this Web test is included in another Web test and is inheriting properties from the parent Web test.

Public property

LastResponse

Gets the last response received for a top-level request in this Web test.

Public property

Name

Gets the name of the test case.

Public property

Outcome

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

Public property

Password

Gets and sets the password used for authentication.

Public property

PreAuthenticate

Gets or sets a value that indicates whether to pre-authenticate all requests within the Web test.

Public property

Proxy

Gets or sets a value representing a proxy server for the Web test to use.

Public property

RequestBodyCaptureLimit

Gets or sets the limit, in bytes, that is used for capturing request data.

Public property

ResponseBodyCaptureLimit

Gets or sets the limit, in bytes, that is used for capturing response data.

Public property

StopOnError

Public property

UserName

Gets and sets the user name used for authentication.

Public property

ValidationRuleReferences

Gets the collection of references to Web test-level validation rules.

Public property

WebProxy

Gets or sets the Web proxy for this Web test to use.

Public property

WebTestPluginReferences

Gets the collection of references to Web test plug-ins.

Top

Events

 

Name

Description

Public event

PostPage

Public event

PostRequest

Occurs after each request this Web test runs.

Public event

PostTransaction

Public event

PostWebTest

Occurs after the Web test runs.

Public event

PrePage

Public event

PreRequest

Occurs before each request this Web test runs.

Public event

PreTransaction

Public event

PreWebTest

Occurs before the Web test runs.

Public event

ValidateResponse

Occurs when the response to a Web test request has been received and is ready to be validated.

Top

See Also

Reference

WebTest Class

Microsoft.VisualStudio.TestTools.WebTesting Namespace