Share this page

com.hp.lft.report

## Class ReportConfigurationFactory

- java.lang.Object
- - com.hp.lft.report.ReportConfigurationFactory

-     public class ReportConfigurationFactory
      extends java.lang.Object

  Interface for creating a configuration that overrides the default UFT Developer report behavior or extends its capabilities.

- - ### Constructor Summary

    Constructor and Description
    `ReportConfigurationFactory()`

  - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `static ModifiableReportConfiguration` | `createDefaultReportConfiguration()` Returns a `ReportConfiguration` with default values.
    `static ModifiableReportConfiguration` | `getReportConfiguration()` Returns the `ModifiableReportConfiguration` to use for this project.
    `static ModifiableReportConfiguration` | `loadConfigurationFromExternalPropertiesFile(java.lang.String propertiesFilePath)` Returns a `ReportConfiguration` with the values defined in the specified leanft.properties file.
    `static ModifiableReportConfiguration` | `loadConfigurationFromResources(java.lang.String propertiesFileName)` Returns a `ReportConfiguration` with the values defined in the leanft.properties file located in the resources folder.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ReportConfigurationFactory

          public ReportConfigurationFactory()

  - ### Method Detail

    - #### createDefaultReportConfiguration

          public static ModifiableReportConfiguration createDefaultReportConfiguration()

      Returns a `ReportConfiguration` with default values.
      Returns:
        ReportConfiguration with default values.

    - #### loadConfigurationFromResources

          public static ModifiableReportConfiguration loadConfigurationFromResources(java.lang.String propertiesFileName)
                                                                              throws java.io.IOException

      Returns a `ReportConfiguration` 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 `ReportConfiguration` with the values from the specified properties file.
      Throws:
        `java.io.IOException` - if the file is not found.

    - #### loadConfigurationFromExternalPropertiesFile

          public static ModifiableReportConfiguration loadConfigurationFromExternalPropertiesFile(java.lang.String propertiesFilePath)
                                                                                           throws java.io.IOException

      Returns a `ReportConfiguration` 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 `ReportConfiguration` with the values from the specified properties file.
      Throws:
        `java.io.IOException` - if the file is not found.

    - #### getReportConfiguration

          public static ModifiableReportConfiguration getReportConfiguration()
                                                                      throws java.io.IOException

      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
      Throws:
        `java.io.IOException`

Tips to improve your search results... UFT Developer Java SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: