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