LoadTest.TestFinished 事件

更新:2007 年 11 月

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

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

语法

声明
Public Event TestFinished As EventHandler(Of TestFinishedEventArgs)
用法
Dim instance As LoadTest
Dim handler As EventHandler(Of TestFinishedEventArgs)

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

备注

TestFinishedEventArgs 包含要完成的测试的 TestIterationResult 对象。

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

权限

另请参见

参考

LoadTest 类

LoadTest 成员

Microsoft.VisualStudio.TestTools.LoadTesting 命名空间