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.

TestStartingEventArgs::TestContextProperties Property

 

Gets an IDictionary<TKey, TValue> that contains data available to individual tests in a load test.

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

public:
property IDictionary<String^, Object^>^ TestContextProperties {
	IDictionary<String^, Object^>^ get();
}

TestContextProperties is used by a load test plug-in implementation to pass data to individual tests that are contained in the load test. These properties are available from the TestContext object in a unit test and the WebTestContext in a Web test.

The TestContextProperties is empty when the TestStarting event occurs. After you add data to the IDictionary<TKey, TValue> object provided by TestContextProperties in the event handler for the TestStarting event, the load test engine adds the contents of TestContextProperties to the test context.

Return to top
Show: