Package com.hp.lft.report
Class ModifiableReportConfiguration
java.lang.Object
com.hp.lft.report.ModifiableReportConfiguration
- All Implemented Interfaces:
ReportConfiguration
The class used for configuring the run result report.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected boolean
protected boolean
protected String
protected ReportGranularity
protected ReportLevel
protected CaptureLevel
protected String
protected String
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the ReportConfiguration class that is initialized with the report configuration values from the local leanft.properties file. -
Method Summary
Modifier and TypeMethodDescriptionReturns the description of the run results report.Returns the name of the folder where the run results report is generated.Returns the granularity of report generation.Returns the level of events to be reported.The snapshot capture level used to generate the report.Returns the root directory where report folders are generated.getTitle()
Returns the run results report title.boolean
Indicates whether the existing report files will be overridden.boolean
Indicates if the reporting is enabled.void
setDescription
(String description) void
setOverrideExisting
(boolean isOverrideExisting) protected void
setReportEnabled
(boolean reportEnabled) void
setReportFolder
(String folderName) protected void
setReportGranularity
(ReportGranularity granularity) void
setReportLevel
(ReportLevel reportLevel) void
setSnapshotsLevel
(CaptureLevel snapshotsLevel) void
setTargetDirectory
(String targetDirectory) void
-
Field Details
-
reportEnabled
protected boolean reportEnabled -
reportGranularity
-
reportFolder
-
title
-
description
-
targetDirectory
-
isOverrideExisting
protected boolean isOverrideExisting -
reportLevel
-
snapshotsLevel
-
-
Constructor Details
-
ModifiableReportConfiguration
public ModifiableReportConfiguration()Initializes a new instance of the ReportConfiguration class that is initialized with the report configuration values from the local leanft.properties file.
-
-
Method Details
-
isReportEnabled
public boolean isReportEnabled()Description copied from interface:ReportConfiguration
Indicates if the reporting is enabled. If false, the report won't be initialized and generated at all. Default = true- Specified by:
isReportEnabled
in interfaceReportConfiguration
- Returns:
- true if the reporting is enabled
-
setReportEnabled
protected void setReportEnabled(boolean reportEnabled) -
getReportGranularity
Description copied from interface:ReportConfiguration
Returns the granularity of report generation. Possible values:ReportGranularity
.- Specified by:
getReportGranularity
in interfaceReportConfiguration
-
setReportGranularity
-
getReportFolder
Description copied from interface:ReportConfiguration
Returns the name of the folder where the run results report is generated. Default = RunResults.- Specified by:
getReportFolder
in interfaceReportConfiguration
- Returns:
- name of the report folder.
-
setReportFolder
-
getTitle
Description copied from interface:ReportConfiguration
Returns the run results report title. Default = Run Results.- Specified by:
getTitle
in interfaceReportConfiguration
- Returns:
- the title of the report.
-
setTitle
-
getDescription
Description copied from interface:ReportConfiguration
Returns the description of the run results report. The description appears directly below the title in the report. By default, the description is empty.- Specified by:
getDescription
in interfaceReportConfiguration
- Returns:
- description of the Report.
-
setDescription
-
getTargetDirectory
Description copied from interface:ReportConfiguration
Returns the root directory where report folders are generated. Default = project output path.- Specified by:
getTargetDirectory
in interfaceReportConfiguration
- Returns:
- the report folder path.
-
setTargetDirectory
-
isOverrideExisting
public boolean isOverrideExisting()Description copied from interface:ReportConfiguration
Indicates whether the existing report files will be overridden. If false, each report filename gets an ordinal suffix.- Specified by:
isOverrideExisting
in interfaceReportConfiguration
- Returns:
- true if the existing report files will be overridden.
-
setOverrideExisting
public void setOverrideExisting(boolean isOverrideExisting) -
getReportLevel
Description copied from interface:ReportConfiguration
Returns the level of events to be reported. Possible values:ReportLevel
.- Specified by:
getReportLevel
in interfaceReportConfiguration
- Returns:
- the
ReportLevel
used for reporting events.
-
setReportLevel
-
getSnapshotsLevel
Description copied from interface:ReportConfiguration
The snapshot capture level used to generate the report. Possible values:CaptureLevel
- Specified by:
getSnapshotsLevel
in interfaceReportConfiguration
- Returns:
- the
CaptureLevel
used.
-
setSnapshotsLevel
-