Lieutenant Lieutenant
Lieutenant
535 views

Best way to release UFT concurrent license after script execution

I've just discovered that many of our UFT users kick off their test scripts (directly in UFT) just as they leave the office for the night.  This is bad practive because once the script has finished running, UFT remains open and is using up one of our licenses unnecessarily.

What's the best solution to this please?  I was hoping that changing the <LicenseAutoReleaseInterval> setting in C:\ProgramData\Hewlett-Packard\UFT\License\LicenseSettings.xml to 120 (2 hours) would work, but it doesn't seem to help.

I know that the users could instead use a VBScript script to run their tests from outside of UFT, or of course use ALM, but I'd like to know the best approach that allows maximum flexibility and minimal hassle.

Tags (3)
0 Likes
2 Replies
Admiral
Admiral

Hi Grahamengland,

Hope you are doing well.

 

I found below Enhancement Request to add support for: "License auto-release setting should release the license when only UFT is left idle, not the whole system "

https://softwaresupport.hpe.com/group/softwaresupport/search-result/-/facetsearch/document/KM02521472

this is still under investigation and will be consider for future releases.

 

At this moment Unified Functional Testing (UFT) by design cannot free up a license as long as it is opened and can communicate with the license server. 

UFT checks in with the license server every 15 minutes to validate that the license is still available. Licenses are freed up as soon as UFT is closed gracefully. If UFT crashes or UFT process is killed, UFT will not get to the exit code that frees up the license: in this case, wait for the timeout of 15 minutes – the license will be released after 15 minutes of no communication from the client machine.
If License Server is restarted, this would only help if there are “phantom” connections, i.e. it does not help if UFT is open and can communicate with the license server.
 
Regards,
 
” If you find this or any post useful to resolve the issue, please mark this thread as correct answer and other members can benefit with the information given”
Ruddy Alvarez H.
Customer Support Engineer

If you find thst aat this or any other post resolves your issue, please be sure to mark it as an accepted solution.
If you are satisfied with anyone’s response please remember to give them a KUDOS by clicking on the STAR at the bottom left of the pond show your appreciation.
0 Likes
Micro Focus Expert
Micro Focus Expert

Hi,

In regards LicenseAutoReleaseInterval setting, it works when there is no user activity, meaning that the computer is not being used at all (it monitors all mouse and keyboard events); just minimizing UFT or having it idle won't work.
Since scripts are running overnight, are the users using any utility like Caffeine to keep the machine awake? This utility sends a keystroke every 59 seconds which avoids the idle state of the machine and will reset LicenseAutoReleaseInterval counter as well.

In the other hand, when running from ALM, you can configure UFT Remote Agent to automatically close UFT. For more information, review remote agent settings:

RAS.png

Kindly,
Alvaro

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.