This topic describes how to consume a floating license from Protection! Licensing Server 5 that is compatible with ReadyAPI 3.3.1 and later. If you use earlier version, see Check out Floating Licenses on Headless Machines (Legacy).
You can apply floating licenses on headless machines by using a command-line license manager.
Before checking out a floating license on your machine, you need to install and configure the server on your computer or on some machine in your local network. See Configure License Server 5.x for details.
Your computer must have access to the license server. Make sure the firewalls and proxies in your network do not block the access.
The machine where ReadyAPI is installed should be able to connect to the license server machine by using the IP address for which the license is issued. In most cases, it means that there should not be NATs, load balancers, and other intermediates that remap the IP address of the license server machine.
If you access the floating License Server through a firewall (for example, from a remote server or from home), you will need to open port
443. Ask your system administrator for assistance, if needed.
Download the License Manager packaged application from the SmartBear website.
Note: The License Manager requires Java 12. You can use Java shipped with ReadyAPI or download the required version from https://jdk.java.net/archive/.
Run the License Manager .bat (or .sh on Linux and macOS) file with the
For example, if you use Java shipped with ReadyAPI, perform the following commands:
cd <ReadyAPI directory>\jre\bin
<path to license manager>\license-manager.bat -s 127.0.0.1:443
If you use Java 12 installed in your operating system, perform the following command:
license-manager.bat -s 127.0.0.1:443
The License Manager will ask you what license information (ReadyAPI Test, ReadyAPI Performance, ReadyAPI Virtualization, VirtServer or TestEngine) you want to check out. Specify the license by entering the relevant number.How to automateHide steps
To automate this step, do the following:
Create a text file containing the code of the application whose license you want to consume:
1 ReadyAPI Test 2 ReadyAPI Performance 3 Secure (if you have an old license) 4 ReadyAPI Virtualization 5 VirtServer 6 ReadyAPI Bundle 7 TestEngine 8 SwaggerHub 9 SwaggerHub 2
For example, to activate a ReadyAPI Test license, specify
< file-nameafter the command line. For example:license-manager.bat -s 127.0.0.1:1099 < C:\Work\Test.txt
The License Manager will check out the license from the license server and apply it.