LoadTestContext Class
Encapsulates information about the context in which the load test is running.
Assembly: Microsoft.VisualStudio.QualityTools.LoadTestFramework (in Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll)
| Name | Description | |
|---|---|---|
![]() | AgentCount | Gets the total number of agents that are used in the load test run. |
![]() | AgentId | Gets the one-based index for the current agent. |
![]() | AgentName | Gets the name of the current agent. |
![]() | ControllerName | Gets the name of the computer that acts as the controller for the load test run. |
![]() | Count | Gets the number of elements that are contained in the LoadTestContext object. |
![]() | IsLocalRun | Gets a value that indicates whether the test was run locally or remotely. |
![]() | IsReadOnly | Gets a value that indicates whether LoadTestContext is read-only. |
![]() | Item[String^] | Gets or sets a LoadTestContext element that has the specified key. |
![]() | Keys | Gets an ICollection<T> that contains the keys of the LoadTestContext elements. |
![]() | LoadTestRunId | Gets the ID that is associated with this load test run. Set accessor is set to internal. |
![]() | Values | Gets the ICollection<T> that contains the values in the LoadTestContext elements. |
| Name | Description | |
|---|---|---|
![]() | Add(KeyValuePair<String^, Object^>) | Adds a KeyValuePair<TKey, TValue> item to the LoadTestContext. |
![]() | Add(String^, Object^) | Adds an element that has the provided key and value to the LoadTestContext. |
![]() | Clear() | Removes all items from the LoadTestContext. |
![]() | Contains(KeyValuePair<String^, Object^>) | Determines whether the LoadTestContext contains a specific value. |
![]() | ContainsKey(String^) | Indicates whether the LoadTestContext contains an element that has the specified key. |
![]() | CopyTo(array<KeyValuePair<String^, Object^>>^, Int32) | Copies the elements of the LoadTestContext to an Array, starting at a particular Array index. |
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetEnumerator() | Returns an enumerator that iterates through the LoadTestContext. |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | Remove(KeyValuePair<String^, Object^>) | Removes the first occurrence of a specific object from the LoadTestContext. |
![]() | Remove(String^) | Removes the element that has the specified key from the LoadTestContext. |
![]() | ToString() | (Inherited from Object.) |
![]() | TryGetValue(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.




