02-15-2013 09:00 AM
I am running 10 QTPs using the concurrent license mode.
Is there any where that i can configure a user timeout so that any inactive QTP connection will be automatically disconnected from the license server , freeing up the licenses for others?
02-15-2013 10:46 AM
I asked the same question of HP support. They explained that an instance of QTP will keep renewing its license from the Concurrent License Server as long as QTP is running, regardless of whether it is actively being used.
It looks like the license keys themselves can be configured (when you request the license from HP) with a lifetime value, but this actually has no effect. The QTP app itself is designed to keep renewing its concurrent user license forever.
(Opinions expressed in my postings are mine alone, and do not reflect the opinions of my employer.No warranties express or implied for any solution/suggestion posted.)
02-17-2013 11:48 PM
You can create a QTP launcher, and ask anyone to start QTP using it.
This launcher can monitor QTP process (QTPro.exe) for memory and CPU (E.g. get values every 2 sec), and after pre-defined timeout that there was no change in memory, it is clearly that this instance is idle, and can be "killed".
To be more polite, it is recommended to use QTP com object and save current work before killing QTP process, or at least pop-up a big message box that QTP is about to be killed in about 5 minutes.