 | ReportSnapshot Method (ReportLevel, String, String, Element, IReportMetadata) |
Creates and stores a snapshot of the specified target element
and adds a link to the snapshot to the report.
Namespace:
Ranorex
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntaxpublic static void Snapshot(
ReportLevel level,
string category,
string message,
Element target,
params IReportMetadata[] metaData
)
Public Shared Sub Snapshot (
level As ReportLevel,
category As String,
message As String,
target As Element,
ParamArray metaData As IReportMetadata()
)
Parameters
- level
- Type: RanorexReportLevel
The reporting level of the message. - category
- Type: SystemString
The category name. - message
- Type: SystemString
An optional message to log to the report. - target
- Type: Ranorex.CoreElement
The target element to create the snapshot of. - metaData
- Type: Ranorex.CoreIReportMetadata
Advanced reference information for use in the report. Used by Ranorex internally.
Exceptions| Exception | Condition |
|---|
| ArgumentNullException | If target is null. |
See Also