Tuesday 22 January 2013

Lesson 2 - Introduction and Installation of QTP

QTP is an Automated testing tool developed by Mercury interactive later on took over by HP.It uses VB script as its default scripting language .QTP is record and playback tool i.e. it record the events that we perform on application and replay them back.QTP identifies each element of application as an object and provides various methods to work on them.It performs functional and regression testing  through a user interface such as a native GUI or web interface. It works by identifying the objects in the application user interface or a web page and performing desired operations (such as mouse clicks or keyboard events); it can also capture object properties like name or handler ID. Although QTP is usually used for "UI Based" Automation, it also can automate some "Non-UI" based Test Cases such as file system operations, database testing or Web services testing.

Version History of QTP
  1. 1998 - Astra QT
  2. 2000 - QTP 5.0
  3. 2001 - QTP 5.5
  4. 2002 - QTP 6.0
  5. 2003 - QTP 6.5
  6. 2004 - QTP 8.0
  7. 2005 - QTP 8.2
  8. 2006 - QTP 9.0
  9. 2007 - QTP 9.1
  10. 2008 - QTP 9.2
  11. 2008 - QTP 9.5
  12. 2009 - QTP 10.0
Now, the latest version of QTP is 11.0

QTP Installation Guide:-

If you are installing Demo Version of QTPthen i will  recommended you to use virtual drive of XP on your machine. The reason behind this scene is that if you installed QTP on your machine with Demo Version license and if that Demo version expires then you cannot Re-install Demo Version of QTP until and unless you format your machine. So why to get into trouble just follow simple steps. If you are using any software in demo version then you have to uninstall it before its validity ends. Same scene with QTP ,if your Demo License version of QTP 9.1 is for 14 days then you have to uninstall it on 13th day otherwise on 15th day you will have to face troubles for Re-installing it.
So here is the step by step guide to install QTP on your machine with Demo version license.

  1.  Install VMware player on your pc. If you don’t have the set up, download it from here, https://my.vmware.com/web/vmware/free#desktop_end_user_computing/vmware_player/5_0 
  2. Now Create virtual Drive of XP on your machine using VMware player. 
  3.  Start > VMware player > Create a New Virtual Machine > Select Installer disc > Follow    the instructions.
  4. Open your virtual machine using VMware player.
  5. Copy QTP folder to virtual machine in ‘ C ’ drive and install it.
  6. Select License option as Demo License and Click Next. All options are set by Default so just go on clicking Next till the set up finishes.
  7. Once the set up finishes Restart your virtual machine and open QTP from start menu .
           
Select Add ins that your application  require and Open New Blank test. 

On 13th day uninstall QTP and before reinstalling it clear all registry of QTP using QTP cleaner (a tool that clears all registry of QTP) or if you dont have the tools follow the below process.

QTP Re-Installation Guide
1. Uninstall QTP from control panel 
2. Restart the machine. 
3. From Registry - delete all reference of QTP and Mercury
    (Perform search for the entire regedit and delete)
open Run command and enter regedit 
4. Delete the keys from the HKEY_local_machine\Software
                                        CLSYSTEM                    
5. Delete Rainbow.SentinelLM from HKEY_CLASSES_ROOT 
6. Delete the following files from your system 
wlrun.ini,
mercury.ini,
sysprs7.dll,
clauth1.dll,
clauth2.dll,
lsprst7.dll,
lsprst7.tgz,
lservrc,
ssprs.dll,
ssprs.tgz,
tmpPrst.tgz,
sysprs7.tgz
 
(Some of the files might not be available in your system. Leave it and continue to next step)
 
7. Navigate to <install dir> and delete the folder. 
8. Restart the machine.
9. Re- Install QTP.

Note: If your QTP trial license is not expired than the trial period will get restored to complete 14 days. If you make the QTP license to expire by changing the system date than your QTP license will remain expired even after following the above steps.

2 comments:

  1. Hi. Can we keep on working like this if we re-install it before expiry date. :P

    ReplyDelete

Note: only a member of this blog may post a comment.