We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

LoadTest::TestSelected Event

Occurs every time an iteration of one of the tests contained within the LoadTest is selected.

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

 event EventHandler<TestSelectedEventArgs^>^ TestSelected {
	void add (EventHandler<TestSelectedEventArgs^>^ value);
	void remove (EventHandler<TestSelectedEventArgs^>^ value);

The event handler may change the test to be started by setting the TestName property of the TestStartingEventArgs class.