Sdílet prostřednictvím


ITestExecutionPlugin.BeforeTestStarted – metoda

Tato metoda je volána před zahájením zkoušky.

Obor názvů:  Microsoft.VisualStudio.TestTools.Execution
Sestavení:  Microsoft.VisualStudio.QualityTools.ExecutionCommon (v Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)

Syntaxe

'Deklarace
Function BeforeTestStarted ( _
    runContext As IDataCollectionRunContext, _
    id As TestExecId _
) As Boolean
bool BeforeTestStarted(
    IDataCollectionRunContext runContext,
    TestExecId id
)
bool BeforeTestStarted(
    IDataCollectionRunContext^ runContext, 
    TestExecId^ id
)
abstract BeforeTestStarted : 
        runContext:IDataCollectionRunContext * 
        id:TestExecId -> bool 
function BeforeTestStarted(
    runContext : IDataCollectionRunContext, 
    id : TestExecId
) : boolean

Parametry

Vrácená hodnota

Typ: System.Boolean
true Pokud agent by nadále spustit test; falsePokud agent by spustit test.

Poznámka

Při false je vrácena agent předpokládá, že modul plug-in ohlásil chybu testu pro zkoušky a zaznamenání výsledků.I když false vrácena modul plug-in bude stále zvýšit TestEnd události tohoto test.

Zabezpečení rozhraní .NET Framework

Viz také

Odkaz

ITestExecutionPlugin Rozhraní

Microsoft.VisualStudio.TestTools.Execution – obor názvů

TestEnd

IDataCollectionRunContext