LoadTest.TestStarting 事件

更新:2007 年 11 月

当负载测试中包含的一个测试的迭代启动时发生。

命名空间:  Microsoft.VisualStudio.TestTools.LoadTesting
程序集:  Microsoft.VisualStudio.QualityTools.LoadTestFramework(在 Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll 中)

语法

声明
Public Event TestStarting As EventHandler(Of TestStartingEventArgs)
用法
Dim instance As LoadTest
Dim handler As EventHandler(Of TestStartingEventArgs)

AddHandler instance.TestStarting, handler
public event EventHandler<TestStartingEventArgs> TestStarting
public:
 event EventHandler<TestStartingEventArgs^>^ TestStarting {
    void add (EventHandler<TestStartingEventArgs^>^ value);
    void remove (EventHandler<TestStartingEventArgs^>^ value);
}
JScript 不支持事件。

备注

TestStartingEventArgs 包含对正在启动的测试的引用,以及正在其中启动测试的 LoadTestScenario

有关如何处理事件的更多信息,请参见使用事件

权限

另请参见

参考

LoadTest 类

LoadTest 成员

Microsoft.VisualStudio.TestTools.LoadTesting 命名空间