Automatically embeds a screenshot when a trigger event occurs.
Namespace:
Gallio.FrameworkAssembly: Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.610.0)
Syntax
| C# |
|---|
public static void AutoEmbedScreenshot( TriggerEvent triggerEvent, string attachmentName, CaptureParameters parameters ) |
| Visual Basic (Declaration) |
|---|
Public Shared Sub AutoEmbedScreenshot ( _ triggerEvent As TriggerEvent, _ attachmentName As String, _ parameters As CaptureParameters _ ) |
Parameters
- triggerEvent
- Type: Gallio.Framework..::.TriggerEvent
The trigger event.
- attachmentName
- Type: System..::.String
The name to give to the image attachment, or null to assign one automatically.
- parameters
- Type: Gallio.Common.Media..::.CaptureParameters
The capture parameters.
Remarks
If screenshots cannot be captured, the method will embed a warning message to that effect.
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentNullException | Thrown if parameters is null. |
