Heartbeat Event
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

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.

© 2016 Microsoft