Udostępnij za pośrednictwem


LoadTestContext Members

Include Protected Members
Include Inherited Members

Encapsulates information about the context in which the load test is running.

The LoadTestContext type exposes the following members.

Methods

 

Name

Description

Public method

Add

Overloaded. Adds an item to the LoadTestContext.

Public method

Clear

Removes all items from the LoadTestContext.

Public method

Contains

Determines whether the LoadTestContext contains a specific value.

Public method

ContainsKey

Indicates whether the LoadTestContext contains an element with the specified key.

Public method

CopyTo

Copies the elements of the LoadTestContext to an Array, starting at a particular Array index.

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 enumerator that iterates through the LoadTestContext.

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 the first occurrence of a specific object from the LoadTestContext.

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 being used in the load test run.

Public property

AgentId

Gets the one-based index for the current agent.

Public property

AgentName

Gets the name of the current agent.

Public property

ControllerName

Gets the name of the computer acting as the controller for the load test run.

Public property

Count

Gets the number of elements contained in the LoadTestContext object.

Public property

IsLocalRun

Gets a value that indicates whether the test was run locally or remotely.

Public property

IsReadOnly

Gets a value indicating whether LoadTestContext is read-only.

Public property

Item

Gets or sets a LoadTestContext element with the specified key.

Public property

Keys

Gets an ICollection<T> that contains the keys of the LoadTestContext elements.

Public property

Values

Gets ICollection<T> that contains the values in the LoadTestContext elements.

Top

Explicit Interface Implementations

 

Name

Description

Explicit interface implemetationPrivate method

IEnumerable.GetEnumerator

Top

See Also

Reference

LoadTestContext Class

Microsoft.VisualStudio.TestTools.LoadTesting Namespace