JavaScript: Configuring the UFT Developer runtime engine and HTML report

Configure the UFT Developer runtime engine and HTML report

The LFT.init() method provides a default configuration for the UFT Developer runtime engine address and the HTML report of the test run's results.

You can customize these settings.

Back to top

Override the default report settings during runtime

You can configure report settings in your test script so that, during runtime, these settings will override your project's default report settings.

You can configure the following settings:

  • title
  • description
  • reportLevel
  • snapshotsLevel

For example, to configure the report so that test object replay errors do not appear in the report, you can include the following in your test script:

LFT.Reporter.config().reportLevel = LFT.Reporter.ReportLevel.Off;

Note:  

Make sure to add LFT.init() to your code before you configure the report settings.

The reportFolder, targetDirectory, and overrideExisting settings cannot be configured to override the default report settings. Attempting to configure these settings will throw an exception.

Back to top

See also:

Got it!
Welcome to the help center for UFT Developer, formerly known as LeanFT. UFT Developer is part of the new Micro Focus UFT family of integrated functional testing solutions.