You are on page 1of 5

QTP QTP is the powerful tool for functional and Regression testing from HP.

Working concept is Record and Play back. It support large number of Application & Environment.  Window Based Application  Web Based Application  Activax Controls Etc. Scripting language is used is VB Script. Competitors : Rational Robot(IBM) Selenium (Open Source) Test Complete Advantage of Automation Testing : It Save Human Resource. It Save Hardware Cost. It Save Software Cost. The result we get is always accurate. Workflow of QTP PREPARE  Check Stability of Environment  Check Stability of Application.  Check validity of Input Data CREATE  Record user actions.  Try to run recorded script.  Work with Object Repository. VERIFY & ENHANSE  Add Checkpoints.  Add Synchronization Point.  Add Parameterization. Integrate

What is Object in QTP Each GUI element of application is called object in QTP Types of Objects We have 2 types of Objects in QTP 1 Test Objects All objects on which action has been performed by user or objects which are recorded by QTP are called Test Objects. 4 Expert View Expert view display VB script code of all recorded steps. HIGH LEVEL FEATURES OF QTP 1 Object Spy With the help of object spy we can view Properties and Methods of Test Object and Run Time Objects. properties and value. 3 Active Screen Active Screen display snapshot of application’s page on which action has been performed. 5 Keyword View Keyword view display all objects on which action has been performed by user in hierarchical tree. It allow us to make checkpoints and outputting of values from Active Screen. Integrate multiple scripts to work together. 2 Run Time Objects . 2 Object Repository Object Repository holds are objects recoded by QTP with their logical name.

this name is called Logical Name . QTP Working at the time of Recording 1. Then QTP matches properties of Test Object with Run time objects of Application. 8. properties and calue. Then QTP store that object in object repository with logical name. 3. 5. 1 2 3 4 While Running script. Test Objects can be defined as the subset of Runtime Objects. If Object is Uniquely identify that object then move to Step 7 else QTP apply assistive properties of that class one by one until the object is identify uniquely. 2. After uniquely identify the object QTP give a name to that object. QTP first look to the object on which action has been performed. QTP Working at the time of Running script. 7.All Objects belongs to AUT(Application under test) are called Run Time Objects. QTP read properties and value from Object Repository. If all properties-value does not match then QTP use smart identification for that. Then QTP try to find out Class for that particular object. After Finding class QTP apply mandatory properties of that class to object to uniquely identify that object. Then QTP pick that object and put it into Test Object Space. If all properties-value matches successfully then QTP perform action on that object. If object is uniquely identify in step 5 then move to step 7 else QTP apply ordinal identifier to uniquely identify that object. 4. . 6.

For each action a separate object repository is created. We can export local object repository to shared object repository. Object repository display objects in the form of hierarchical tree. 2 Shared Object Repository : Shared Object repository holds objects belongs to number of actions and number of scripts Objects from shared object repository can be transferred to local object repository. Highlight : With the help of Highlight feature we can locate a particular object in application. Define New Test Object : We can add a new object to object repository which still does not exist in application. Object repository display logical name of that object with object class name. Shared object repository is created from Repository Manager(Resources-> Repository Manager) Functions can be performed from Object Repository Add Object : We can add a new object to object repository without recording . Object repository display properties of object with values.OBJECT REPOSITORY Object repository is used to hold objects recorded by QTP OR Object repository hold objects on which action has been performed by user while recording script. Types of Object Repositories. 2 Types 1 Local Object Repository : local object repository hold objects belongs to a particular action. By Default local object repository is created when we start recording. Shared objects repository can be used by many users together in read only mode. ** To use this feature we need to open application before highlight .

we can select a particular object from application and check weather this object exist in object repository or not . . Export from Local : We can export local object repository to Shared Object Repository.Locate in Repository : It is opposite to Highlight feature. Filter : With this we can flter which repository we want to use when we have many object repositories. Update From Application : With this feature we can update properties-value of test objects from Run Time objects of application.