WebTestContext Class
Represents the context available to a WebTest.
Assembly: Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
| Name | Description | |
|---|---|---|
![]() | AgentCount | Gets the total number of agents used in the current test run. |
![]() | AgentId | Gets the zero-based index for the current agent. |
![]() | AgentName | Gets the name of the agent computer on which the WebTest is running. |
![]() | ControllerName | Gets the name of the test controller computer. |
![]() | CookieContainer | Gets or sets the cookies used by previous requests in the Web performance test. |
![]() | Count | Gets the number of key/value pair elements in the WebTestContext. |
![]() | IsNewUser | Gets a value that indicates whether the Web performance test is being run in the context of a new user of the target Web site. |
![]() | IsReadOnly | Gets a value that indicates whether the WebTestContext is read-only. |
![]() | Item[String^] | Gets or sets the value associated with the specified key from the WebTestContext object. |
![]() | Keys | Gets a collection of all the keys in the WebTestContext. |
![]() | LastRequestOutcome | |
![]() | LastResponse | Gets or sets the last WebTestResponse. |
![]() | ValidationLevel | Gets the validation level for the current test run. |
![]() | Values | Gets a collection of all the values in the WebTestContext. |
![]() | WebTestIteration | Gets the iteration number of this Web performance test variation. |
![]() | WebTestUserId | Gets a value that uniquely identifies a simulated virtual user when you run the Web performance test in a load test. |
| Name | Description | |
|---|---|---|
![]() | Add(KeyValuePair<String^, Object^>) | Adds a KeyValuePair<TKey, TValue> object to the WebTestContext. |
![]() | Add(String^, Object^) | Adds an element with the provided key and value to the WebTestContext. |
![]() | Clear() | Removes all the elements from the WebTestContext. |
![]() | Contains(KeyValuePair<String^, Object^>) | Determines whether the WebTestContext contains the specified key/value pair. |
![]() | ContainsKey(String^) | Determines whether the WebTestContext contains an element with the specified key. |
![]() | CopyTo(array<KeyValuePair<String^, Object^>>^, Int32) | Copies the WebTestContext elements to an array of KeyValuePair<TKey, TValue> objects |
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetEnumerator() | Returns an IEnumerator<T> that contains the WebTestContext elements. |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | Remove(KeyValuePair<String^, Object^>) | Removes a KeyValuePair<TKey, TValue> from the WebTestContext. |
![]() | Remove(String^) | Removes the element with the specified key from the WebTestContext. |
![]() | ToString() | (Inherited from Object.) |
![]() | TryGetValue(String^, Object^) | Gets the value associated with the specified key. |
| Name | Description | |
|---|---|---|
![]() ![]() | IEnumerable::GetEnumerator() | Returns an enumerator that iterates through a collection of WebTestContext elements. |
Used for every Web performance test and contains data that describes the context of the Web performance test. This information includes data about data-bound values, information about the current run such as the AgentId and ControllerName, and other contextual information.
This class does not provide any public constructors.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.




