配置许可证行为

主题介绍如何配置 OpenText Functional Testing 许可证行为。

如果要在 Linux 或 Mac 上安装 OpenText Functional Testing for Developers,或者安装 OpenText Functional Testing for Developers 独立版本,请改为参阅 OpenText Functional Testing for Developers 帮助中心

备注: 出于向后兼容性考虑,某些文件夹路径有意包含以前的公司品牌。

常规许可证设置

常规许可行为在 OpenText Functional TestingOpenText Functional Testing for Developers 计算机的 AutoPass 许可证配置文件中进行管理。该文件包含有关受支持的选项和值的详细信息。

该文件位于: C:\ProgramData\OpenText\UFT\License\autopass.txt

警告: 配置此文件时需谨慎。不正确的配置可能会导致使用许可证的产品无法启动,或导致它们出现意外行为。

其他配置包括:

  • 配置许可备用机制。如果并发许可证服务器安装了多个许可证版本,并且您希望始终确保产品可以找到可用的许可证,请执行此过程。
  • 配置许可超时。定义在许可证释放之前所经过的超时期限。

返回页首

配置许可备用机制

定义系统是否对 OpenText Functional TestingOpenText Functional Testing for Developers 使用许可备用机制,如下所示:

  1. 在 AutoPass License Server 计算机上,浏览到 C:\ProgramData\autopass\apls\licenseserver\data\conf\UFT.xml 文件。

    备注: AutoPass 版本 9.3 或更高版本会提供此文件。

  2. 编辑并添加键和值,以根据需要将以下值设置为 "true":

    产品许可证类型
    OpenText Functional Testing任意

    license.fallback.uft.rte

    运行时引擎任意

    license.fallback.rte.rte

    OpenText Functional Testing for DevelopersUFT Developer

    license.fallback.leanft.leanft

    OpenText Functional Testing for Developers运行时引擎

    license.fallback.leanft.rte

    确保在 <properties> 元素中和 <comment> 元素后添加键条目。

    按以下格式编辑并添加键和值:

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

Example: 要在您希望使用 OpenText Functional Testing 且已配置“任意”许可证类型时启用备用机制,请将相关键值设置为 "true",如下所示:

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

查找 运行时引擎 许可证

如果启用了备用机制,且找到了可用的“运行时引擎”许可证,则您将只能运行测试,而无法使用创建或编辑功能。

通过执行以下任一操作,确保您可以始终访问 OpenText Functional Testing IDE 或 OpenText Functional Testing for Developers IDE 插件:

  • 通过将键值设置为“false”(这是默认值) 停用备用机制。

  • 请与您的许可证服务器管理员联系,以确保所有 OpenText Functional Testing 运行时引擎许可证均被阻止或正在使用中。

有关更多详细信息,请参阅许可备用机制

返回页首

配置许可超时

定义没有键盘或鼠标输入的分钟数,在该时间后 OpenText Functional TestingOpenText Functional Testing for Developers 将释放当前使用的并发许可证。

OpenText Functional TestingOpenText Functional Testing for Developers 配置超时

  1. OpenText Functional TestingOpenText Functional Testing for Developers 计算机上,打开 LicenseSettings.xml 文件进行编辑。

    该文件位于 C:\ProgramData\OpenText\UFT\License 文件夹中。

  2. 使用要为超时定义的分钟数更新以下参数:

    LicenseAutoReleaseInterval

    出现确认消息 (警告用户许可证即将超时) 之前所经过的分钟数。

    ConfirmLicenseReleaseTimeout关闭确认消息并且释放许可证之前所经过的分钟数。

AutoPass 并发许可证服务器配置超时

在 AutoPass License Server 计算机上,浏览到 C:\ProgramData\autopass\apls\licenseserver\data\conf\UFT.xml 下的 UFT.xml 文件。

打开文件进行编辑,并添加以下代码行:

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

其中 "#" 是处于非活动状态的分钟数。

示例: 以下语法定义您的许可证将在处于非活动状态 10 分钟后释放。

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

返回页首

另请参见: