Everything you need to know about UFT(QTP) License

Updated On Feb 18, 2014 by

We receive a lot of questions on QTP blog and forums regarding UFT(QTP) licensing and related issues. This post will serve as a guide to know all about UFT(QTP) license.

Your Guide to UFT license

Types of UFT(QTP) license

There are two main types of UFT licenses -

  1. Seat License: This license is tied to the computer on which it is installed. The trial or a demo license of UFT is a seat license which has a validity of 30 days. You don’t require any keys for the trial license.
  2. Concurrent License: This is also known as floating license. This license type requires a concurrent license server to be installed in your office/local network. With concurrent license, a pool of licenses are assigned to the concurrent license server. Anybody in a local network can connect to this pool as long as at least a single license is available. For example – Let’s say your company has purchased 50 concurrent licenses of UFT. All these 50 licenses would be assigned to the license server. Now at any point of time, maximum 50 people in the local network of your company can work on UFT.
    1. Commuter License: This can be said as a special type of concurrent license which can be used when you don’t have access to the license server. In this case, you checkout a license from the concurrent license server for ‘n’ days where n <= 180. A use case for concurrent license can be – say you need to travel on work where you can’t connect to your company’s concurrent license server. In that case, you can check out a license from the server before you leave, go about your work and check-in back the license to the pool. The duration during which the licensed is checked out, it will behave like a seat license on your machine and the number of licenses on the license server will be reduced by one.
    2. Remote Commuter License: This is used when you want a license for a particular machine (say John’s machine) but John’s machine is not able to connect to the license server for checkout purposes. In that case, you would take help of a machine(say Mike’s machine) which IS able to connect to the license server and checkout a license for John’s machine. A detailed illustration is given later in this article.

Locking Code

This is a unique identification code for the machine on which UFT is installed. It is required when you want to install a seat license on your machine. Locking code can be obtained by running the UFT license installation wizard > Selecting ‘Seat license’ > Locking code. Once you get the Locking code, your company rep. should contact HP at this link and request for license keys for your machine.
Check the illustration below to get your machine’s Locking Code.

UFT locking code

LSHOST and LSFORCEHOST variables

While the concurrent license installation wizard in UFT can be used to specify the license server, you can also make use of Windows environment variables to search and connect your UFT windows client with concurrent license servers.

Windows environment variables are available under System properties dialog box > Advanced tab > Environment variables button. The shortcut to access System properties is Windows key + Pause/Break key.

LSHOST can be used to set a preferred concurrent license server (so you can set multiple license servers separated with a semicolon in the User Variables list), while LSFORCEHOST can be used to force or restrict your UFT client to a particular license server. The Variable value box can take IP address or the host name. Please note that the environment variable values are restricted to 64 characters.

UFT LSHOST Variable

How to check-out and check-in a commuter license?

You can checkout a commuter license for your offline use from the concurrent license server, using a utility called WCommute.exe located under C:\Program Files\HP\Unified Functional Testing\bin. A license can be checked-out for a max duration of 180 days, post which it will automatically be returned to the license pool. If you wish to check-in the license during 180 days, you can make use of the same utility WCommute.exe.

How to check-out and check-in a remote commuter license?

There are a few steps you need to follow to check out a remote commuter license.

Going by the example of John and Mike mentioned above, where John is at a machine which can’t interact with server whereas Mike at a machine which can interact with a server here are the steps with an illustration.

  1. John will use WRCommute.exe utility present under C:\Program Files\HP\Unified Functional Testing\bin to send his machine’s locking code to Mike.
  2. Mike will use WCommute.exe and John’s locking code to generate a remote commuter authorization which is saved to a file and is sent to John.
  3. John again uses WRCommute.exe and the file sent by Mike to install the remote commuter license on his machine.

Please make sure that WCommute.exe and WRCommute.exe used in the process above are of same version.

Illustration: Checkout Remote commuter license

How to manage concurrent license servers?

A utility known as WLMAdmin.exe can be used to add, manage or monitor concurrent licenses in a concurrent license server. This utility can be found in your UFT installation disk or a UFT dump file downloaded from HP, under the folder LicenseServer\utils.
Note: Unlike WCommute.exe and WRCommute.exe, WLAdmin.exe is not copied to your installation directory during installation.

How to restrict concurrent license usage among various groups in an organization?

Ok, this is something advanced and should be used by someone who is in-charge of managing the license server.
You may have several groups in an organization using the same concurrent license server. You want that licenses should be fairly divided amongst those groups and restrict a particular group from consuming all licenses. This can be achieved using a utility called WlsGrmgr.exe, present under the folder LicenseServer\utils. (as mentioned above)

What type of license should be used for virtual machines?

Virtualization software like Citrix, VM Ware may generate a different locking code for each of the sessions, so you can’t use seat license on such machines. You should use commuter license if you’re using virtual machines.

UFT(QTP) license cost

Last we checked, seat license were available for $8000 – $12000, for US region. There can be a lot of variance in license cost depending upon your region, organization etc so it is advisable to get in touch with your HP sales rep. If you’re aware of the cost of QTP license that is used in your org, please mention in the comments section below.

UFT(QTP) license key and license file location

UFT license keys are stored in LSERVRC file. This file can be located under -

  1. C:\Documents and Settings\All Users\Application Data\HP\Functional testing\License for Win XP and
  2. under %programdata%\HP\Functional testing\License\lservrc for Win Vista, Win 7 and Win 8.

LSERVRC file can be opened in a simple editor like notepad. The path to LSERVRC file is added under Windows Environment variables discussed above during installation.LSERVRC file location

You can check our step-by-step instructions to download & install QTP on your machine.

I hope this article would help you with all your questions pertaining to QTP licenses. In case we have left something, please feel free to ask/contribute in the comments section below.

Welcome new readers: Download the Free eBook!

Ankur JainI am Ankur Jain, the owner of LearnQTP and founder of a software organization. This site is run, maintained and updated by me and my team. Feel free to take a look around, you may want to start with What is QTP? 

You can connect with me on my Google+ page. 

Please enter your first name and email address below to instantly download the eBook on Optimizing QTP Scripts. In future, we will make sure you get new tips & tricks on QTP delivered direct to your email box.



Share This:

41 Comments

  1. laurent

    Hi,
    when I start UFT connected through the private network of my society, everything’s OK : UFT starts correctly. When I start UFT at home through VPN client : licence error Unable to connect to a licence server.
    Help ! Please ! I can’t work at home with UFT. The average downloading rate of my ADSL line is 3 Mb/S

  2. Vicki D

    Company just installed UFT Rel 11.53 with patch UFT_00044 on Citrix Server (Win 2008) using a current license; New License Mgr was installed on Win 2003 server; The first time a Citrix user accesses UFT, they get a License Error. If the user clicks to install, they can type in the License Server name, then successfully use UFT. No problem with their 2nd attempt or any other usage.

    This is unacceptable to have first time users type in the License Server Name because of the License Error when connecting to UFT for the first time.

    We have check the LSFORCEHOST system variable and it has the correct License Server name. No problem with users that install UFT on their workstations. Only for Citrix users.

    Help please.

  3. Vickky

    Hi Ankur,

    Our company have a win xp machine with QTP seat license, this machine is End of life.

    I do want to retire this to a new one, so can I simply install QTP on new machine use this old seat license and retire existing one.

    Thanks in advance

    • @Vickky: Seat licenses are tied to a machine using locking code. You would need to check with HP to migrate the locking code from one machine to another.

  4. Vera

    Hi,
    Can you please confirm that running QTP as object from batch file does not consume the licence. If yes – do you know if it works the same way in UFT?
    Thanks,
    Vera

  5. Nvedia

    Hello there
    I am using the QTP trial right now for my personal learning which would get over in 3 weeks. Can you please tell me what are my options to use QTP when my trial period is over? I am an individual and cannot afford $800 etc for seat license.
    Does QTP has any development license or any license for training/students?

    • @Nvedia: Either ask your company for the license keys OR ask HP to extend trial OR reinstall OS on your machine.

  6. Kelvar

    Hi Ankur,

    nice article but can you describe how to remotely checkin a commuter license? I checked out 2 licenses to machines which are on travel now but they have to be replaced elsewhere and cannot connect to the server.

    Many thanks,
    Kelvar

  7. Arivu

    Hai Ankur,
    Hai sir your site is very informative,I have a doub’t in UFT11.5,while recording it’s showing any buttons name like Submit button,cancel button etc…Instead of that its showing like Click 250,65,Like width and height ,,because of that reason i can’t able to work please provide me the solutions for the above..

  8. Radhika

    Hi Ankur,

    This is very informative in a very easy words. Actually I had some technical problem while Launching QTP, just thought if you can help me diagnose the problem and guide me how to resolve it.

    Issue: when trying to install QTP after selecting concurrent Licences and proceeding I see an error message as below

    License Error

    Unable to connect to a License Server.
    Details: –Either the License server host is not found on the network or an invalid host name specified.

    But Launching QC is successful for the below scenarios with the same network:
    *It connects sometimes without any error. Its an intermittent issue
    *It works if we connect to VPN.

    Could you please help me in understanding the issue.

    • Ankur Jain

      @Radhika: Try to use LSFORCEHOST variable as discussed above.

      • Radhika

        Thanks for your reply!

        Yes, the LSFORCEHOST is already set to the License Server name.
        As I said Iam able to launch QTP sometimes that is when the License usage is low but when License usage is high I’m unable to launch.

        Details: *Max Licenses on the Server is 50
        *I’am able to launch QTP when the licese usage is arround 5
        *when the number of License increases to arround 10 though it has not reached the limit (50) I would no longer be able to Launch QTP it shows error that
        Error: “Unable to connect to a License Server.
        Details: –Either the License server host is not found on the network or an invalid host name specified “. In this stage I can Launch QTP using VPN.

        Does the no.of max License usage is different in VPN and Local network?
        What do you think here is the issue?

      • Ankur Jain

        @Radhika: I have heard such problems the other way round ie people often find issues connecting over VPN. Please check the version of the License Server installed using the WLMAdmin tool. It is recommended to install License Server version 8.4, or a later version when one is available, which is provided with the installation pack of UFT 11.50.

  9. Arjun

    Hi Ankur,

    We have procured functional testing licenses for QTP 11. Do you know if it is free to upgrade to UFT 11.5?
    If yes, will it include Service Test license also or only Functional Testing features would be available?

    Thanks,
    Arjun

    • Ankur Jain

      @Arjun: I don’t think the upgrade would be free. However I would suggest you to cross check with your account rep.

  10. Soumen Chakraborty

    Hi Ankur,
    Is there any way to get the HP contract details from the concurrent license that we are using? Will HP provide any support to our queries only on the basis of our concurrent license?

    • Ankur Jain

      @Sumen: I think your HP account rep should help in this case.

      • Soumen Chakraborty

        Actually I have no information about contract details when I took over from my ex-colleague. Now I need to contact HP but do not have the required credentials.

  11. Deepesh

    Hi Ankur, I am a IT support person and I want to know if the QTP11 machines in my company are using seat license or concurrent license. Is there a remote way to scan through all the machines in the company and identify which ones have seat vs concurrent license?

    • Ankur Jain

      @Deepesh: Check the utility above to find out about a concurrent license. As long as a machine is connected to the server it will use a concurrent license. As soon as it is disconnected, it will be give back the license to the pool.

  12. Hari

    Hi Ankur,

    I am trying to install the UFT 11.50 trial version in Windows 2008 R2 server. But I am not able to run it in the trail mode at all . Could you please let me know how we can install trial version of UFT 11.50 in server machines

    Thanks & Regards
    Hari

    • Subhrajyoti

      Hi Hari,

      Seat licenses are not available for operating systems that have session
      capabilities, for example, Windows servers or Citrix.The seat license includes the 30-day demoperiod, during which you may use all of the available QuickTest features.Since you are using Windows 2008 which is windows server OS.. You will not get trial version for UFT.

  13. Ravi

    Hi,

    Can some one please tell how can i crack the seat license for UFT11.5

    Thanks
    Ravi

  14. BRAHMMAJI

    Thanks ankur..
    very useful information ankur…thanks alot.

  15. Veeranki

    Thanks Ankur.

    Eagerly waiting for your post.

    Cheers,
    Veeranki Naveen.

  16. Veeranki

    Ankur,

    I know below questions may sound funny but my curiosity is pushing me to post the below queries :)

    1.
    As per QTP help

    “The identification property set for each test object is created and maintained by QuickTest.”

    As per my understanding to create Identification property set, QTP first map the identification properties to native properties and then copies the corresponding property values into Identification property set.
    Correct me if I am wrong ?

    2.
    Also ,want to understand the below statement in detail

    “The native property set for each run-time object is created and maintained by the object creator (for example, Microsoft for Microsoft Internet Explorer objects)”

    3.
    Also would like to request if you can write a blog on “Difference between Native & Identification properties and methods in detail”.
    With some real time examples of Native methods.

    4. Can we say Identification propertie’s are the subset of Native properties.

    5.
    Abs_x, Abs_y, x , y visible etc are the Identification properties, How QTP generates these property values ?

    Regards,
    Veeranki Naveen.

  17. Veeranki Naveen

    Ankur,

    I know this is not a correct thread to post this query but wanted to know why “Drag & Drop” methods are defined for QTP’s WebEdit , WebButton Classes ?
    Any practicle example, If any ?

    Regards,
    Veeranki Naveen.

  18. Viswa

    Hi Ankur,

    Very Nicely Organized

    Thanks

  19. Babu

    Thank you ankur, But what about QTP11.0 license. I think most of the companies r using QTP11.0 still now. For move to UFT will take some time i think. Please share any body how to connect mobile for mobile automation through QTP11.0. Some of the industry senior automaters discussion about UFT may be it will failure.

    • Ankur Jain

      @Babu: Even for QTP 11 and lower versions, licensing aspects remain the same as mentioned above. For mobile testing, HP has collaborated with Perfecto Mobile. Eran from Perfecto Mobile, wrote an article on Mobile testing sometime back.

  20. Phani Krishna

    Thanks ankur. very nice article.

  21. Farida

    Very good article! The types of licenses are well explained.

  22. Anuradha

    very useful information ankur…thanks

  23. Veeranki

    Ankur,

    Thank you for the above article. Your contribution is remarkable.

    Ankur it would be a great help if you can write an article on ROI
    In the Automation life cycle , first phase is Decision of Automation (Whether to Go or Not to Go for automating an appication) Which is based on ROI,
    So, How is it calculated in organizations ?
    What are the parameters considered for ROl calculations ?
    Please explain with examples if Possible.

    Cheers,
    Veeranki.

    • Ankur Jain

      Sure Veeranki. I’ll put your suggestion in my To-Do.

  24. Anand

    Very nice article Ankur…was very helpful and useful information…Thanks a lot…

  25. Ashok

    Super article man… Thanx…

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>