ITestExecutionPlugin.BeforeTestStarted Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Bu yöntem bir test başlamadan önce çağrılır.
public:
bool BeforeTestStarted(Microsoft::VisualStudio::TestTools::Execution::IDataCollectionRunContext ^ runContext, Microsoft::VisualStudio::TestTools::Common::TestExecId ^ id);
public bool BeforeTestStarted (Microsoft.VisualStudio.TestTools.Execution.IDataCollectionRunContext runContext, Microsoft.VisualStudio.TestTools.Common.TestExecId id);
abstract member BeforeTestStarted : Microsoft.VisualStudio.TestTools.Execution.IDataCollectionRunContext * Microsoft.VisualStudio.TestTools.Common.TestExecId -> bool
Public Function BeforeTestStarted (runContext As IDataCollectionRunContext, id As TestExecId) As Boolean
Parametreler
- runContext
- IDataCollectionRunContext
IDataCollectionRunContextTestin bağlamını temsil eden nesne.
- id
- TestExecId
Test KIMLIĞI.
Döndürülenler
aracının testi çalıştırmaya devam etmesi gerekiyorsa true; aracının testi çalıştırması gerekiyorsa false. Not false döndürüldüğünde, aracı eklentinin bu test için bir test hatası raporladığını ve bir sonuç kaydetmez olduğunu varsayar. False döndürüldüğünde bile eklenti TestEnd Bu test için bir olay oluşturacak.