Setting up licensing
Before you start using HCL OneTest™ API, you must set up licensing.
Before you begin
- You must have the URL of a configured FlexNet cloud license server with appropriate mapped
entitlements. The cloud license server URL is this form:
https://hclsoftware.compliance.flexnetoperations.com
- With a cloud license server you also need its Server ID, which is typically a 12-character alphanumeric identifier.
- If you are using stubs in high-performance mode you must have configured HCL Quality Server licensing separately. See Setting up licensing.
About this task
There are two license concepts:
- An HCL OneTest™ API floating seat license. This is a portable license that is consumed on-demand, enabling several users and applications to time-share a license.
- A Service Virtualization API call license. This is an entitlement to use a stub to process an agreed number of messages in high-performance mode.
Capabilities
- When using HCL OneTest™ API a seat license is required. When licensed you can open a project, view, edit, and run resources on that computer. When stubs are run in HCL OneTest™ API they are throttled not consuming any additional entitlement. When closing the program this seat is released within 15 minutes.
- All other programs (for example the command line RunTests) while running resources require a seat license, except in the case that stubs do not need a seat license instead consuming Service Virtualization API call entitlement.
Procedure
Procedure on Windows
-
You must add these environment variables:
Procedure on Linux (Ubuntu)
-
Add the following environment variables to
/etc/environment
HCL_ONETEST_LICENSING_URL=https://hclsoftware.compliance.flexnetoperations.com HCL_ONETEST_LICENSING_ID=1234567890AB
Troubleshooting
-
Enable the licensing debug logs by doing these steps:
-
Append
com.hcl.products.test.common.licensing.key.level=INFO
toit-logging.properties
in the HCL OneTest™ API installation directory -
Add the environment variable
HCL_ONETEST_LICENSING_DEBUG
and set it totrue
-
Start the HCL OneTest™ API from the
command line by using the
-console
parameter
-
Append
-
After the product installation, when you apply the license to the product, the license
information is cached in a system directory. If there are any permission issues accessing the
directory or the directory is deleted, there is a licensing error when you start the product. The
workaround is to create an environment variable
HCL_ONETEST_LICENSING_STORAGE
and specify a directory path. The licensing information is stored in this new directory, for example,C:\Users\<username>\HCLOneTest