Open topic with navigation

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
--- | --- | ---
| ReportConfiguration | The report configuration used for generating the report.
| ReportDescription | The LeanFT report description. The description appears directly below the title in the LeanFT report. By default, the description is empty.
| ReportLevel | The report level used to generate the LeanFT report. Possible values: ReportLevel.
| ReportTitle | The LeanFT report title. Default = Run Results.
| SnapshotCaptureLevel | The snapshot capture level used to generate the LeanFT report.

Top
Public Methods

| Name | Description
--- | --- | ---
| AddRunInformation | Adds a custom entry to the top section of the LeanFT report.
| EndReportingContext | Ends the section in the LeanFT report.
| EndTest | Ends the current test level and optionally sets the status for the test.
| GenerateReport | Generates the LeanFT report.
| GetCurrentExecutionContextStatus Supported in LeanFT versions 14.51 and later. | 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 public static Status GetCurrentExecutionContextStatus( )
| Init | Initializes the specified ReportConfiguration.
| ReportEvent | Overloaded. Adds a custom step to the LeanFT report including the image from the specified path.
| ReportVerification | Adds a custom verification step to the LeanFT report.
| StartReportingContext | Starts a named section in the LeanFT report.
| StartTest | Starts a new test level for the LeanFT report.

Top