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.

WebTestContext Class

 

Represents the context available to a WebTest.

Namespace:   Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

System.Object
  Microsoft.VisualStudio.TestTools.WebTesting.WebTestContext

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

NameDescription
System_CAPS_pubpropertyAgentCount

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

System_CAPS_pubpropertyAgentId

Gets the zero-based index for the current agent.

System_CAPS_pubpropertyAgentName

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

System_CAPS_pubpropertyControllerName

Gets the name of the test controller computer.

System_CAPS_pubpropertyCookieContainer

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

System_CAPS_pubpropertyCount

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

System_CAPS_pubpropertyIsNewUser

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.

System_CAPS_pubpropertyIsReadOnly

Gets a value that indicates whether the WebTestContext is read-only.

System_CAPS_pubpropertyItem[String]

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

System_CAPS_pubpropertyKeys

Gets a collection of all the keys in the WebTestContext.

System_CAPS_pubpropertyLastRequestOutcome

System_CAPS_pubpropertyLastResponse

Gets or sets the last WebTestResponse.

System_CAPS_pubpropertyValidationLevel

Gets the validation level for the current test run.

System_CAPS_pubpropertyValues

Gets a collection of all the values in the WebTestContext.

System_CAPS_pubpropertyWebTestIteration

Gets the iteration number of this Web performance test variation.

System_CAPS_pubpropertyWebTestUserId

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

NameDescription
System_CAPS_pubmethodAdd(KeyValuePair<String, Object>)

Adds a KeyValuePair<TKey, TValue> object to the WebTestContext.

System_CAPS_pubmethodAdd(String, Object)

Adds an element with the provided key and value to the WebTestContext.

System_CAPS_pubmethodClear()

Removes all the elements from the WebTestContext.

System_CAPS_pubmethodContains(KeyValuePair<String, Object>)

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

System_CAPS_pubmethodContainsKey(String)

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

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

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

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetEnumerator()

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

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 a KeyValuePair<TKey, TValue> from the WebTestContext.

System_CAPS_pubmethodRemove(String)

Removes the element with the specified key from the WebTestContext.

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodTryGetValue(String, Object)

Gets the value associated with the specified key.

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIEnumerable.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.

Return to top
Show: