Reporter Class
Provides the means to report custom events, additional data, and configuration for the report. This class cannot be inherited.

C# Syntax

                            
public static class Reporter 
Inheritance Hierarchy

System.Object
   HP.LFT.Report.Reporter

Public Properties
  Name Description
Public Property static (Shared in Visual Basic) ReportConfiguration The report configuration used for generating the report.  
Public Property static (Shared in Visual Basic) ReportDescription the UFT Developer report description. The description appears directly below the title in the UFT Developer report. By default, the description is empty.  
Public Property static (Shared in Visual Basic) ReportLevel The report level used to generate the UFT Developer report. Possible values: ReportLevel.  
Public Property static (Shared in Visual Basic) ReportTitle the UFT Developer report title. Default = Run Results.  
Public Property static (Shared in Visual Basic) SnapshotCaptureLevel The snapshot capture level used to generate the UFT Developer report.  
Top
Public Methods
  Name Description
Public Method static (Shared in Visual Basic) AddRunInformation Adds a custom entry to the top section of the UFT Developer report.  
Public Method static (Shared in Visual Basic) EndReportingContext Ends the section in the UFT Developer report.  
Public Method static (Shared in Visual Basic) EndTest Ends the current test level and optionally sets the status for the test.  
Public Method static (Shared in Visual Basic) GenerateReport Generates the UFT Developer report.  
Public Method

static (Shared in Visual Basic)

GetCurrentExecutionContextStatus

Returns the status of the current execution context. The execution context is equivalent to any superior structure that contains operations (e.g.: test method, reporting context, etc.).

C# Syntax

publicstaticStatus GetCurrentExecutionContextStatus( )

Public Method static (Shared in Visual Basic) Init Initializes the specified ReportConfiguration.  
Public Method static (Shared in Visual Basic) ReportEvent Overloaded. Adds a custom step to the UFT Developer report including the image from the specified path.  
Public Method static (Shared in Visual Basic) ReportVerification Adds a custom verification step to the UFT Developer report.  
Public Method static (Shared in Visual Basic) StartReportingContext Starts a named section in the UFT Developer report.  
Public Method static (Shared in Visual Basic) StartScreenRecording

Overloaded. Starts screen recording.

Supported on UFT Developer versions 15.0.1 and later

Public Method static (Shared in Visual Basic) StartTest Starts a new test level for the UFT Developer report.  
Public Method static (Shared in Visual Basic) StopScreenRecording

Supported on UFT Developer versions 15.0.1 and later

Stops screen recording. A link to the recording is added to the report.

To start the recording use startScreenRecording.

C# Syntax

void StopScreenRecording()
Top