Explain the concept of how QTP identifies object.

Answer Posted / pranavi

After learning the objetc's information or properties all
the madatory properties will be saved in the object
repository, if assistive properties and ordinal identifiers
are also learnt even they will be stored in the object
repository and Base filter Properties, Optional Filter
Properties will be stored in a secrete place in object
repository which we can't see physically. Even though the
base filter and optional filter properties are stored the
qtp will not think of them first. It will think of them
only when qtp fails to identify the object using the
mandatory properties, assistive properties.

In general the Object Repository may contain the following
after the properties are learnt
1. All the Mandatory Properties (Only mandatory
properties)
2. All the mandatory and one or more Assistive
Properties
3. All the mandatory, all the Assistive
properties
4. All the mandatory, all the assistive and
ordinal idetifier
The fourth case exists if ordinal identifier is specified.


There are 2 type of identification. They are
1. Using Normal Identification
2. Using Smart Identification

1. Using Normal Identification (When there are no base
filter properties and Optional Filter Properties):

All the mandatory properties and what ever the assistive
properties qtp thought they are sufficient and which are
learnt will be stored under description properties (this
can be viewed in object identification under tools menu,
click on the object name).

Process:

Qtp will try to identify the object using normal
identification i.e. by using all the mandatory properties
and what ever the assistive properties stored when
learnt.If these details are enough the qtp will find the
object and perform the action if not sufficient it will
display an error message that "QTP cannot identify the
object object_name" when there is no ordinal identifier. If
not sufficient and if there is ordinal identifier the qtp
will find the object using ordinal identifier by forgetting
all the previous information. Even then if it is not able
to find the object it will display the error message.

2. When smart identification is enabled:
First the qtp will use description properties if they are
sufficient qtp will find the object, if it fails to
identify the object then the qtp will go the secrete place
where the base filter and optional filter properties are
stored and forgets about all the description properties and
starts the identification process freshly only by using the
base filter and optional filter properties. QTP first uses
all the base filter properties and tries to identify the
object in the application. If succeeded performs the action
but if it fails the qtp will filter the objects which are
similar and will take all the base filter properties and
1st optional filter property and tries to filter the object
among the objects which are filtered by using base filter
properties previously and will identify the unique object.
If again fails the qtp will take base filter properties,
1st and 2nd optional filter properties, by using these
details the qtp will try to find the object among the
previously filtered objects. if again fails the process
continues untill the final optional filter property. If it
still fails to identify the object then qtp will go to
ordinal identifier if it exists and tries to identify the
object, if ordinal identifier doesnot exist then qtp will
display an error message that it cannot identify the object.


If the object is identified by smart identification in test
result the description of the process how the qtp
identified the object by smart identification will be
mentioned clearly in steps.
It can be viewed as follows.
1.In test result
2.Under test iteration
Action Summary
Application_Name
Object1_name
Object2_name_smart identification

Click on the object where smart identification is specified
against the onject name. After clicking on it the
description will be displayed in a window.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the concept of how quicktest professional identifies object?

534


Did QTP prove efficient for your project? Yes or No, explain?

6117


How to use the object spy in quicktest professional 8.0 version?

544


Hi All, How to get repeated word in string . Thanks Balaji

934


What are the different types of qtp test assets and their extensions?

599






I opened gmail login into gmail and i have to save (Pass or move) all the mail into notepad please give me code Thanks of all

1521


I have 5 save buttons in 5 tabs . The tabs are placed one after the other. My object repository have these added as 5 save buttons with name sav1, save 2, save 3 , save 4, save 5 .all are getting highlighted from OR but they are not getting clicked. After spying each button all the properties are same except First button Index 0 html id:=btnSaveTab1 outerhtml:=", Second button "html id:=btnSave "outerhtml:=", Third button "html id:=", outerhtml:=",

1355


hi i want license key for qtp 9.2 pls its adjust product name : quick test professional locking code :8 - 54A6A license type : seat license maintenance number : 88888888-8888 pls send license key to my email id borusu.ramkumar@gmail.com

3701


How to creating an output value using quicktest professional?

542


Is it possible to split an action? How?

660


Explain advantages and disadvantages of ddf?

595


What is the latest version of qtp?

581


Differences between quicktest professional (qtp) and winrunner?

621


In order to select an automation tool for automating ur application, what r the things u need to consider? For eg i will go for automation; 1) When there is a lot of retesting and regression testing. 2) Return on investments. 3) Whether the tool supports the appln. 4)--------------, etc. Pls give me more number of points because my answer did not satisfy the interviewer. Very urgent pls

1446


what is the difference betn QTP 8.0 AND PREVIOUS VERSION

1949