ITestExecutionPlugin.BeforeTestStarted(IDataCollectionRunContext, TestExecId) Méthode

Définition

Cette méthode est appelée avant qu'un test ne démarre.

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

Paramètres

runContext
IDataCollectionRunContext

Objet IDataCollectionRunContext qui représente le contexte du test.

id
TestExecId

ID de test.

Retours

Boolean

true si l’agent doit continuer à exécuter le test. false si l’agent ne doit pas exécuter le test. NoteWhen false est retourné, l’agent part du principe que le plug-in a signalé un échec de test pour ce test et n’enregistre pas de résultat. Même quand la valeur false est retournée, le plug-in déclenche toujours un TestEnd événement pour ce test.

S’applique à