Partager via


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)

Syntax

'Declaration
Public Event TestSelected As EventHandler(Of TestSelectedEventArgs)
public event EventHandler<TestSelectedEventArgs> TestSelected
public:
 event EventHandler<TestSelectedEventArgs^>^ TestSelected {
    void add (EventHandler<TestSelectedEventArgs^>^ value);
    void remove (EventHandler<TestSelectedEventArgs^>^ value);
}
member TestSelected : IEvent<EventHandler<TestSelectedEventArgs>,
    TestSelectedEventArgs>
JScript does not support events.

Remarks

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

.NET Framework Security

See Also

Reference

LoadTest Class

Microsoft.VisualStudio.TestTools.LoadTesting Namespace