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)
Syntax
'Declaration
Public ReadOnly Property TestContextProperties As IDictionary(Of String, Object)
'Usage
Dim instance As TestStartingEventArgs
Dim value As IDictionary(Of String, Object)
value = instance.TestContextProperties
public IDictionary<string, Object> TestContextProperties { get; }
public:
property IDictionary<String^, Object^>^ TestContextProperties {
IDictionary<String^, Object^>^ get ();
}
public function get TestContextProperties () : IDictionary<String, Object>
Property Value
Type: System.Collections.Generic.IDictionary<String, Object>
An IDictionary<TKey, TValue>.
Remarks
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.TestTools.LoadTesting Namespace