ITestExecutionPlugin.BeforeTestStarted(IDataCollectionRunContext, TestExecId) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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
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.