Package com.hp.lft.report
Class ReportingProvider
java.lang.Object
com.hp.lft.report.ReportingProvider
Provides various types of reporter objects.
-
Method Summary
Modifier and TypeMethodDescriptionReturns a report configuration with default values.static ReportingProvider
com.hp.lft.report.internal.InternalReporter
Returns theModifiableReportConfiguration
to use for this project.Returns the reporter with the type: Reporter.Returns the reporter with the type: UnitTestReporter.void
init
(ModifiableReportConfiguration reportConfiguration) loadCustomReportConfigurationFromExternalPropertiesFile
(String propertiesFilePath) Returns a report configuration updated with the values defined in the specified leanft.properties file.loadCustomReportConfigurationFromResources
(String propertiesFileName) Returns a report configuration updated with the values defined in the leanft.properties file located in the resources folder.
-
Method Details
-
getInstance
-
init
- Throws:
ReportException
-
getReporter
Returns the reporter with the type: Reporter.- Returns:
- Reporter object.
-
getUnitTestReporter4InternalUse
Returns the reporter with the type: UnitTestReporter. (for internal use only.)- Returns:
- Reporter object.
-
getInternalReporter
public com.hp.lft.report.internal.InternalReporter getInternalReporter() -
createDefaultReportConfiguration
Returns a report configuration with default values.- Returns:
- a report configuration with default values.
-
loadCustomReportConfigurationFromResources
public ModifiableReportConfiguration loadCustomReportConfigurationFromResources(String propertiesFileName) throws IOException Returns a report configuration updated with the values defined in the leanft.properties file located in the resources folder. If a value is missing in the specified property file, it is initialized in the returned configuration with the default value.- Parameters:
propertiesFileName
- the name of the properties file to load (the file must be in the resources folder).- Returns:
- the updated report configuration with the values from the specified properties file.
- Throws:
IOException
- if the file is not found.
-
loadCustomReportConfigurationFromExternalPropertiesFile
public ModifiableReportConfiguration loadCustomReportConfigurationFromExternalPropertiesFile(String propertiesFilePath) throws IOException Returns a report configuration updated with the values defined in the specified leanft.properties file. If a value is missing in the specified property file, it is initialized in the returned configuration with the default value.- Parameters:
propertiesFilePath
- the full path of the properties file to load.- Returns:
- the updated report configuration with the values from the specified properties file.
- Throws:
IOException
- if the file is not found.
-
getReportConfiguration
Returns theModifiableReportConfiguration
to use for this project. By default, uses the Report configuration details defined in the project's leanft.properties file.
However, if an 'lftConfigFile' system variable was specified with a valid leanft.properties file, the Report data from that file is used to initialize theSDKConfiguration
.- Returns:
- the ModifiableReportConfiguration to use for this project
-