Udostępnij za pośrednictwem


LoadTest.LoadTestStarting Event

Occurs just before the load test begins to run on the agent.

Namespace:  Microsoft.VisualStudio.TestTools.LoadTesting
Assembly:  Microsoft.VisualStudio.QualityTools.LoadTestFramework (in Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll)

Syntax

'Declaration
Public Event LoadTestStarting As EventHandler
'Usage
Dim instance As LoadTest 
Dim handler As EventHandler 

AddHandler instance.LoadTestStarting, handler
public event EventHandler LoadTestStarting
public:
 event EventHandler^ LoadTestStarting {
    void add (EventHandler^ value);
    void remove (EventHandler^ value);
}
JScript does not support events.

Remarks

For more information about how to handle events, see Consuming Events.

Note

If a ILoadTestPlugin implementation has code that should be run before the load test starts on any agent, that code should be placed in the load test plug-in Initialize method instead of in the LoadTestStarting event handler, because the former is guaranteed to run before the load test is started on any agent, whereas the latter is not.

.NET Framework Security

See Also

Reference

LoadTest Class

LoadTest Members

Microsoft.VisualStudio.TestTools.LoadTesting Namespace