Bagikan melalui


TestStartingEventArgs.TestContextProperties Property

Gets an IDictionary 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)
public IDictionary<string, Object> TestContextProperties { get; }
public:
property IDictionary<String^, Object^>^ TestContextProperties {
    IDictionary<String^, Object^>^ get ();
}
member TestContextProperties : IDictionary<string, Object> with get
function get TestContextProperties () : IDictionary<String, Object>

Property Value

Type: IDictionary<String, Object>
An IDictionary.

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 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

See Also

Reference

TestStartingEventArgs Class

Microsoft.VisualStudio.TestTools.LoadTesting Namespace

Other Resources

How to: Create a Load Test Plug-In

About Data Binding