This documentation is archived and is not being maintained.

LoadTest.Heartbeat Event

Occurs once every second.

Namespace: Microsoft.VisualStudio.TestTools.LoadTesting
Assembly: Microsoft.VisualStudio.QualityTools.LoadTestFramework (in microsoft.visualstudio.qualitytools.loadtestframework.dll)

public event EventHandler<HeartbeatEventArgs> Heartbeat
/** @event */
public void add_Heartbeat (EventHandler<HeartbeatEventArgs> value)

/** @event */
public void remove_Heartbeat (EventHandler<HeartbeatEventArgs> value)

JScript supports the use of events, but not the declaration of new ones.

HeartBeatEventArgs indicates the elapsed time into the load test warm-up period or measurement period. A ILoadTestPlugin could use the Heartbeat event as a time to change the CurrentLoad property of a LoadTestScenario in the load test.

For more information about handling events, see Consuming Events.