共用方式為


ITestExecutionPlugin 介面

可外掛式介面,用於在測試執行架構中執行程式碼。

命名空間:  Microsoft.VisualStudio.TestTools.Execution
組件:  Microsoft.VisualStudio.QualityTools.ExecutionCommon (在 Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll 中)

語法

'宣告
Public Interface ITestExecutionPlugin
public interface ITestExecutionPlugin
public interface class ITestExecutionPlugin
type ITestExecutionPlugin =  interface end
public interface ITestExecutionPlugin

ITestExecutionPlugin 型別會公開下列成員。

方法

  名稱 說明
公用方法 AfterExecutionCompleted 在完成所有測試之後,會呼叫這個方法,表示測試回合完成。
公用方法 AfterTestCompleted 在測試完成之後會呼叫這個方法。
公用方法 BeforeExecutionStarted 在測試回合執行開始之前會呼叫這個方法。
公用方法 BeforeTestStarted 在測試開始之前會呼叫這個方法。

回頁首

備註

實作此介面的類別將可在測試回合期間於代理程式電腦上執行。回合組態中可能會列出一組類別,並以其所指定的順序執行。

請參閱

參考

Microsoft.VisualStudio.TestTools.Execution 命名空間

IPlugin