Automatically embeds a video of the test run from this point forward when a trigger event occurs.

Namespace:  Gallio.Framework
Assembly:  Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.610.0)

Syntax

C#
public static void AutoEmbedRecording(
	TriggerEvent triggerEvent,
	string attachmentName,
	CaptureParameters parameters,
	double framesPerSecond
)
Visual Basic (Declaration)
Public Shared Sub AutoEmbedRecording ( _
	triggerEvent As TriggerEvent, _
	attachmentName As String, _
	parameters As CaptureParameters, _
	framesPerSecond As Double _
)

Parameters

triggerEvent
Type: Gallio.Framework..::.TriggerEvent
The trigger event.
attachmentName
Type: System..::.String
The name to give the video attachment, or null to assign one automatically.
parameters
Type: Gallio.Common.Media..::.CaptureParameters
The capture parameters.
framesPerSecond
Type: System..::.Double
The number of frames per second to capture.

Remarks

Recording a screen capture video can be very CPU and space intensive particularly when running tests on a single-core CPU. We recommend calling AutoEmbedRecording(TriggerEvent, String, CaptureParameters, Double) with a Zoom factor of 0.25 or less and a frame rate of no more than 5 to 10 frames per second.

If screenshots cannot be captured, the method will embed a warning message to that effect.

Exceptions

ExceptionCondition
System..::.ArgumentNullExceptionThrown if parameters is null.

See Also