TestStartingEventArgs.TestContextProperties Özellik
Alır bir IDictionary<TKey, TValue> tek tek sınamalarına yük sınaması için kullanılabilir veri içeren.
Ad alanı: Microsoft.VisualStudio.TestTools.LoadTesting
Derleme: Microsoft.VisualStudio.QualityTools.LoadTestFramework (Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll içinde)
Sözdizimi
'Bildirim
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>
Özellik Değeri
Tür: System.Collections.Generic.IDictionary<String, Object>
An IDictionary<TKey, TValue>.
Notlar
TestContextPropertiesyük sınaması içinde bulunan tek tek sınamaları için veri iletmek için bir yük sınaması eklentisi uygulaması tarafından kullanılır.Bu özellikleri kullanılabilen TestContext birim sınaması nesnesinde ve WebTestContext Web sınamada.
TestContextProperties Boş olduğunda TestStarting olayı oluşur.Veri ekledikten sonra IDictionary<TKey, TValue> tarafından sağlanan nesne TestContextProperties için olay işleyicisinde TestStarting olay, yük test motoru içeriğini ekler TestContextProperties test içeriği.
.NET Framework Güvenliği
- Anında arayanlar için tam güven. Bu üye kısmen güvenilen kodla kullanılamaz. Daha fazla bilgi için bkz. Kısmen güvenilen kod kitaplıklarını kullanma.
Ayrıca bkz.
Başvuru
Microsoft.VisualStudio.TestTools.LoadTesting Ad Alanı