Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

LoadTestContext Class

 

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

Namespace:   Microsoft.VisualStudio.TestTools.LoadTesting
Assembly:  Microsoft.VisualStudio.QualityTools.LoadTestFramework (in Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll)

System.Object
  Microsoft.VisualStudio.TestTools.LoadTesting.LoadTestContext

[SerializableAttribute]
public class LoadTestContext : IDictionary<stringobject>, ICollection<KeyValuePair<stringobject>>, 
	IEnumerable<KeyValuePair<stringobject>>, IEnumerable

NameDescription
System_CAPS_pubpropertyAgentCount

Gets the total number of agents that are used in the load test run.

System_CAPS_pubpropertyAgentId

Gets the one-based index for the current agent.

System_CAPS_pubpropertyAgentName

Gets the name of the current agent.

System_CAPS_pubpropertyControllerName

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

System_CAPS_pubpropertyCount

Gets the number of elements that are contained in the LoadTestContext object.

System_CAPS_pubpropertyIsLocalRun

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

System_CAPS_pubpropertyIsReadOnly

Gets a value that indicates whether LoadTestContext is read-only.

System_CAPS_pubpropertyItem[String]

Gets or sets a LoadTestContext element that has the specified key.

System_CAPS_pubpropertyKeys

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

System_CAPS_pubpropertyLoadTestRunId

Gets the ID that is associated with this load test run. Set accessor is set to internal.

System_CAPS_pubpropertyValues

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

NameDescription
System_CAPS_pubmethodAdd(KeyValuePair<String, Object>)

Adds a KeyValuePair<TKey, TValue> item to the LoadTestContext.

System_CAPS_pubmethodAdd(String, Object)

Adds an element that has the provided key and value to the LoadTestContext.

System_CAPS_pubmethodClear()

Removes all items from the LoadTestContext.

System_CAPS_pubmethodContains(KeyValuePair<String, Object>)

Determines whether the LoadTestContext contains a specific value.

System_CAPS_pubmethodContainsKey(String)

Indicates whether the LoadTestContext contains an element that has the specified key.

System_CAPS_pubmethodCopyTo(KeyValuePair<String, Object>[], Int32)

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

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetEnumerator()

Returns an enumerator that iterates through the LoadTestContext.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodRemove(KeyValuePair<String, Object>)

Removes the first occurrence of a specific object from the LoadTestContext.

System_CAPS_pubmethodRemove(String)

Removes the element that has the specified key from the LoadTestContext.

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodTryGetValue(String, Object)

Gets the value that is associated with the specified key.

This is a collection of context items and load test configurations used for storing information that is used by the load test.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: