Class ReportingProvider

java.lang.Object
com.hp.lft.report.ReportingProvider

public class ReportingProvider extends Object
Provides various types of reporter objects.
  • Method Details

    • getInstance

      public static ReportingProvider getInstance()
    • init

      public void init(ModifiableReportConfiguration reportConfiguration) throws ReportException
      Throws:
      ReportException
    • getReporter

      public ReportProvider getReporter()
      Returns the reporter with the type: Reporter.
      Returns:
      Reporter object.
    • getUnitTestReporter4InternalUse

      public UnitTestReporter 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

      public ModifiableReportConfiguration 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

      public ModifiableReportConfiguration getReportConfiguration()
      Returns the ModifiableReportConfiguration 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 the SDKConfiguration.
      Returns:
      the ModifiableReportConfiguration to use for this project