Explain the concept of how QTP identifies object.

Answers were Sorted based on User's Feedback



Explain the concept of how QTP identifies object...

Answer / parusuram challa

Object identification:
QTP will identify the object in the following manner during
the running.
It will under stand the script statement.
Then it releases that it needs to from some action on some
object, for that it needs some information about that
object.
For that information it will go to the object repository
and get the information from their.
With that information it will try to identify that object.
If it all the object is identified it will perform action
on that object. Here the information means object
properties.
And now the question is that how it is learning those
properties, to identify the objects.
This is the point where every one thinking his one style,
but the fact is that. That the process of learning is like
this.
There are two types of object identification that QTP
normally uses apart from the ordinal identifiers.
In general there are four types of properties that QTP
having.
1. Mandatory properties.
2. Assistive properties.
3. Base filter properties.
4. Optional filter properties.
And ordinal identifiers like location, index and creation
time.
As I told that QTP will be using two types of object
identification.
The first one is normal identification.
In this identification the learning of the properties will
be in the following way.
First the QTP will learn all the mandatory properties at a
time. And with these properties it will try to identify the
object if at all it feels these properties are sufficient
to identify the object uniquely, and then it will stop
learning and use those properties. If at all it feels these
properties are not sufficient to identify the object
uniquely, then it will learn the first assistive property.
And try to identify the object with those properties
(mandatory and first assistive property), if at all it
feels that these properties are sufficient to identify the
object uniquely then it will stop learning and use those
properties to identify the object. If it feels these
properties are not sufficient to identify the object
uniquely. Then it will learn the second assistive property
and repeat the same process till it identify the object
uniquely. If at all it fails to identify the object
uniquely by using all these properties also. Then the
ordinal identifiers come into picture. This is the process
QTP identifies the objects when the smart identification is
disable.
The second type of identification is smart identification.
In the process QTP will be learning all the mandatory, base
filter properties and optional filter properties at time.
But the identification process is as follows.
If you invoke the smart identification then also first QTP
will try to identify the object by using normal
identification process. That is the above process apart
from the ordinal identifier. Now it will not use the
ordinal identifiers. If the normal identification fails
then it will come to the smart identification. And forget
about the normal identification also all those properties
learnt in the normal identification. And now it will using
all the base filter properties at time and tries to
identify the object uniquely. If at all it feels that these
are sufficient then it will use these properties to
identify the object uniquely. Otherwise take the first
optional filter property and same process will continue as
above till the object is identified uniquely. If at all the
smart identification is also fails then it will go to use
the ordinal identifiers. This the actual process of
identification. If we have any questions regarding this
please go head and send me the e-mail to me or directly you
can contact me. only in the mentioned hours only.(8.00 PM
TO 8.00AM)

Parusuram challa,

pramchalla@gmail.com

(+91)9822769949

Is This Answer Correct ?    12 Yes 0 No

Explain the concept of how QTP identifies object...

Answer / sreeprasad

During recording qtp looks at the object and stores it as

test object.For each test object QT learns a set of default

properties called mandatory properties,and look at the rest

of the objects to check whether this properties are enough

to uniquely identify the object. During test run,QT

searches for the run time obkects that matches with the

test object it learned while recording.

Is This Answer Correct ?    6 Yes 2 No

Explain the concept of how QTP identifies object...

Answer / satish kumar

hi parasuram,
m satisfied with ur answer..
can u explain how smart identification works in Qtp??

Is This Answer Correct ?    0 Yes 0 No

Explain the concept of how QTP identifies object...

Answer / 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

Explain the concept of how QTP identifies object...

Answer / aakankshi choudhary

During recording qtp looks at the object and stores it as test object.For each test object QT learns a set of default properties called mandatory properties,and look at the rest of the objects to check whether this properties are enough to uniquely identify the object. During test run,QT searches for the run time objects that matches with the test object it learned while recording.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

what is the automation framework that ur company using(actual procedure,not theoritically explination)

1 Answers  


hi. I Am working in Small IT company as Test Engineer. But am looking for change. I have 2+yrs experience, but my problem is MCA 72%, remaining all are Second Division. plz give solution for my problem.am elgible for MNC's or not. if not plz give suggestion............ already i forwarded my resume to lot of MNC's but. I didn,t get CAL............ plz give any suggestion.

3 Answers  


Action1: I have a value "test" stored in a variable X. I want to use that variable X in Action2 .. how?

1 Answers  


Wht are the BY default Add-ins in QTP 9.2 version and what all are differences between 8.2 and 9.2

2 Answers   Siemens,


We need to verify the user name & password in for the user validation. But we don't want to use the parameterization/ loop for user name and password. What is the way in scripting so that user & password will generate automatically.

11 Answers   Tech Mahindra,






What is a Run-Time Data Table? Where can I find and view this table?

4 Answers  


I have written a code to fetch values fro access db and place in the fields. Iam using GetROProperty to fetch runtime values. Now i want to add runtime values to the access db in field v3. please help me. Its not writting in the db. Option explicit Dim con,rs,db,c Set con=createobject("adodb.connection") Set rs=createobject("adodb.recordset") con.Open "Driver={Microsoft Access Driver (*.mdb)};dbq=D:\Sales.mdb" rs.open "select * from tax",con Do while not rs.eof Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("incost").Set rs.fields("v1") Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("intax").Set rs.fields("v2") c=Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("outtax").GetROProperty("value") rs.MoveNext print c Loop Do while not rs.EOF rs.EditMode rs.Fields("v3").Value="3" rs.Update rs.MoveNext Loop Set rs=nothing Set con=nothing

0 Answers  


If I am scripting Web-based Surveys using QTP that open up differently but at the exact same point require a username and password can I automate that username and password for all the surveys some how using QTP?

0 Answers  


What is Reusable component is QTP...Anybody can answer it..Thanks in advance...

8 Answers   Siemens,


what is advantage of descripting programming in QTP?

3 Answers   ADP,


explian qtp frame work and what is the use of it? what is the neceecity of this? explian detail?

2 Answers  


i have opend 2 gmails i am working with 1 gmail i want to close other gmail by usig script. 2.i have 10 links in a page all of them have same properties& names i want to click on 5link by using script. 3.i have one combobox in that i want to see all the citynames in the combobox and i have to check weather hyderabad is present or not. 4. size of objectrepository. 5.what r problems we get during writing the script. 6.is it possible to compare to excel sheets in qtp if possible wht is the script. 7.example for lowlevelrecording

3 Answers   Semantic Space,


Categories