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 Stringprotected booleanprotected booleanprotected Stringprotected ReportGranularityprotected ReportLevelprotected CaptureLevelprotected Stringprotected 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.booleanIndicates whether the existing report files will be overridden.booleanIndicates if the reporting is enabled.voidsetDescription(String description) voidsetOverrideExisting(boolean isOverrideExisting) protected voidsetReportEnabled(boolean reportEnabled) voidsetReportFolder(String folderName) protected voidsetReportGranularity(ReportGranularity granularity) voidsetReportLevel(ReportLevel reportLevel) voidsetSnapshotsLevel(CaptureLevel snapshotsLevel) voidsetTargetDirectory(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:ReportConfigurationIndicates if the reporting is enabled. If false, the report won't be initialized and generated at all. Default = true- Specified by:
isReportEnabledin interfaceReportConfiguration- Returns:
- true if the reporting is enabled
-
setReportEnabled
protected void setReportEnabled(boolean reportEnabled) -
getReportGranularity
Description copied from interface:ReportConfigurationReturns the granularity of report generation. Possible values:ReportGranularity.- Specified by:
getReportGranularityin interfaceReportConfiguration
-
setReportGranularity
-
getReportFolder
Description copied from interface:ReportConfigurationReturns the name of the folder where the run results report is generated. Default = RunResults.- Specified by:
getReportFolderin interfaceReportConfiguration- Returns:
- name of the report folder.
-
setReportFolder
-
getTitle
Description copied from interface:ReportConfigurationReturns the run results report title. Default = Run Results.- Specified by:
getTitlein interfaceReportConfiguration- Returns:
- the title of the report.
-
setTitle
-
getDescription
Description copied from interface:ReportConfigurationReturns 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:
getDescriptionin interfaceReportConfiguration- Returns:
- description of the Report.
-
setDescription
-
getTargetDirectory
Description copied from interface:ReportConfigurationReturns the root directory where report folders are generated. Default = project output path.- Specified by:
getTargetDirectoryin interfaceReportConfiguration- Returns:
- the report folder path.
-
setTargetDirectory
-
isOverrideExisting
public boolean isOverrideExisting()Description copied from interface:ReportConfigurationIndicates whether the existing report files will be overridden. If false, each report filename gets an ordinal suffix.- Specified by:
isOverrideExistingin interfaceReportConfiguration- Returns:
- true if the existing report files will be overridden.
-
setOverrideExisting
public void setOverrideExisting(boolean isOverrideExisting) -
getReportLevel
Description copied from interface:ReportConfigurationReturns the level of events to be reported. Possible values:ReportLevel.- Specified by:
getReportLevelin interfaceReportConfiguration- Returns:
- the
ReportLevelused for reporting events.
-
setReportLevel
-
getSnapshotsLevel
Description copied from interface:ReportConfigurationThe snapshot capture level used to generate the report. Possible values:CaptureLevel- Specified by:
getSnapshotsLevelin interfaceReportConfiguration- Returns:
- the
CaptureLevelused.
-
setSnapshotsLevel
-