ITestExecutionPlugin.BeforeTestStarted (Método)

Se llama a este método antes de iniciar una prueba.

Espacio de nombres:  Microsoft.VisualStudio.TestTools.Execution
Ensamblado:  Microsoft.VisualStudio.QualityTools.ExecutionCommon (en Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)

Sintaxis

'Declaración
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

Parámetros

Valor devuelto

Tipo: System.Boolean
true si el agente debe continuar ejecutando la prueba; false si el agente no debe ejecutar la prueba.

[!NOTA]

Cuando se devuelve false, el agente supone que el complemento notificó un error para esa prueba y no registra ningún resultado.Incluso cuando se devuelve false, el complemento todavía generará un evento TestEnd para esa prueba.

Seguridad de .NET Framework

Vea también

Referencia

ITestExecutionPlugin Interfaz

Microsoft.VisualStudio.TestTools.Execution (Espacio de nombres)

TestEnd

IDataCollectionRunContext