Configure license behavior

This topic describes how to configure your UFT license behavior.

If you are installing LeanFT on Linux or Mac, or LeanFT standalone, see the LeanFT Help Center instead.

General license settings

General licensing behavior is managed in the AutoPass license configuration file, located on your UFT or LeanFT machine.

This file is located at C:\ProgramData\Hewlett-Packard\UFT\License\autopass.txt and includes details about supported options and values.

Caution: Configure this file with caution.

Incorrect configuration may cause UFT or LeanFT to behave unexpectedly, or prevent UFT or LeanFT from starting.

Additional configurations include:

Back to top

Configure the licensing fallback mechanism

Define whether your system uses the licensing fallback mechanism for UFT and LeanFT as follows:

  1. On your Autopass License Server machine, browse to the C:\ProgramData\HP\HP AutoPass License Server\AutoPass\LicenseServer\data\conf\HPE UFT.xml file.

    Note: This file is available with AutoPass versions 9.3 or higher.

  2. Edit and add keys and values to set the following values to true, as needed:

    Product License type Key
    UFT Any

    license.fallback.uft.rte

    Runtime Engine Any

    license.fallback.rte.rte

    LeanFT UFT Pro

    license.fallback.leanft.leanft

    LeanFT Runtime Engine

    license.fallback.leanft.rte

    Edit and add keys and values in the following format:

    <entry key="{Key}">{Value}</entry>

Example: To enable the fallback mechanism when you want to use UFT and you have any of the license types configured, set the relevant key value to true, as follows:

<entry key="license.fallback.uft.rte">true</entry>

Finding a Runtime Engine license

If the fallback mechanism is enabled, and an available Runtime Engine license is found, you will only be able to run your tests, with no creation or editing abilities.

Ensure that you can always access the UFT IDE or the LeanFT IDE plug-ins by doing one of the following:

  • Disable the fallback mechanism by setting the key values to false (this is the default).

  • Contact your License Server administrator to ensure that any UFT Runtime Engine licenses are blocked or are in use.

For more details, see Licensing fallback mechanism.

Back to top

Configure licensing timeouts

Define the number of minutes, with no keyboard or mouse input, after which UFT or LeanFT releases the currently used concurrent license.

Configure a timeout for UFT or LeanFT

  1. On your UFT or LeanFT machine, open the LicenseSettings.xml file at C:\ProgramData\Hewlett-Packard\UFT\License\LicenseSettings.xml for editing.

  2. Update the following parameters with the number of minutes you want to define for your timeout:

    LicenseAutoReleaseInterval

    The number of minutes after which a confirmation message appears, warning the user that the license is about to time-out.

    ConfirmLicenseReleaseTimeout The number of minutes after which the confirmation message closes, and the license is released.

Configure a timeout for your AutoPass concurrent license server

On your Autopass License Server machine, browse to the HPE UFT.xml file at C:\ProgramData\HP\HP AutoPass License Server\AutoPass\LicenseServer\data\conf\HPE UFT.xml.

Open the file for editing, and add the following line of code:

<entry key="autorelease.interval"><#></entry>

where # is the number of minutes of inactivity.

Example: The following syntax defines that your license is released after 10 minutes of inactivity.

<entry key="autorelease.interval">10</entry>

Back to top

See also: