Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
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.

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.

Community Additions

© 2015 Microsoft