Using a license pool
Last updated
Was this helpful?
Last updated
Was this helpful?
You can easily setup a pool of licenses that are automatically shared between a group of test automation computers.
In the you should set up an account that will be shared between the automation computers. You then add any number of automation licenses to this account, either by moving them from another account, or by purchasing new ones.
The credentials to this account should be stored in a JSON-file with the following format:
On each automation computer you need:
(either Otii 3 Desktop or Otii Server)
A copy of the credential file mentioned above
Since the license pool typically has fewer licenses than there are automation servers, you need to set up the code to wait for a license before running a test.
You need to specify the location for the JSON-file with the shared credentials
You need to specify how long the test script should wait to get a license from the license pool
The client.connect
method will automatically try to login to the license server and reserve a license. If it fails to reserve a license within the time specified it will throw an exception.
After the test is run, the license will be returned, and the client will be logged out.