Udostępnij za pośrednictwem


WebTestContext Members

Include Protected Members
Include Inherited Members

Represents the context available to a WebTest.

The WebTestContext type exposes the following members.

Methods

 

Name

Description

Public method

Add

Overloaded. Provides methods for adding objects to the WebTestContext.

Public method

Clear

Removes all the elements from the WebTestContext.

Public method

Contains

Determines whether the WebTestContext contains the specified key/value pair.

Public method

ContainsKey

Determines whether the WebTestContext contains an element with the specified key.

Public method

CopyTo

Copies the WebTestContext elements to an array of KeyValuePair<TKey, TValue> objects

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

Returns an IEnumerator<T> that contains the WebTestContext elements.

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.)

Protected method

MemberwiseClone

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

Public method

Remove

Overloaded. Removes an element from the WebTestContext object.

Public method

ToString

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

Public method

TryGetValue

Gets the value associated with the specified key.

Top

Properties

 

Name

Description

Public property

AgentCount

Gets the total number of agents used in the current test run.

Public property

AgentId

Gets the zero-based index for the current agent.

Public property

AgentName

Gets the name of the agent computer on which the WebTest is running.

Public property

ControllerName

Gets the name of the test controller computer.

Public property

CookieContainer

Gets or sets the cookies used by previous requests in the Web test.

Public property

Count

Gets the number of key/value pair elements in the WebTestContext.

Public property

IsNewUser

Gets a value that indicates whether the Web test is being run in the context of a new user of the target Web site.

Public property

IsReadOnly

Gets a value indicating whether the WebTestContext is read-only.

Public property

Item

Gets or sets the value associated with the specified key from the WebTestContext object.

Public property

Keys

Gets a collection of all the keys in the WebTestContext.

Public property

LastResponse

Public property

ValidationLevel

Gets the validation level for the current test run.

Public property

Values

Gets a collection of all the values in the WebTestContext.

Public property

WebTestIteration

Gets the iteration number of this Web test variation.

Public property

WebTestUserId

Gets a value that uniquely identifies a simulated virtual user when you run the Web test in a load test.

Top

Explicit Interface Implementations

 

Name

Description

Explicit interface implemetationPrivate method

IEnumerable.GetEnumerator

Top

See Also

Reference

WebTestContext Class

Microsoft.VisualStudio.TestTools.WebTesting Namespace