Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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)

public:
event EventHandler^ LoadTestStarting {
	void add(EventHandler^ value);
	void remove(EventHandler^ value);
}

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

System_CAPS_noteNote

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.

Return to top
Show: