Professional Documents
Culture Documents
Which is defined as a Storage place where one can store the Objects
information and it also act as an Interface between the Test Script and AUT in order to Identify
the Object during the execution.
Objects …………
……….. …………..
properties ……Script…
………. ………….
AUT ………….
Object Repository Test
Using the value of properties in Object Repository QTP will Identify the object in AUT ,
Hence, we can’t change the value of property of that object.
Usually we should not change the value of property of an object but when the value of Original
object’s property is changed by customer then we can change its property value.
We can identify an object with minimum number of properties, so, execution speed will be fast.
If those minimum properties are not sufficient to find an object in AUT then we go for some more
properties to identify that object.
Highlight button is used for High Light the corresponding object in AUT. Some times QTP will
name objects to un-meaningful names , by using this button we can easily find that object in
AUT and re-name to a meaning full names which we can easily remember. OR
Whenever a testing engineer is not understanding any object, then he will use HighLight button ,
so that it will make the corresponding object is highlighted in AUT. Thereby, one can easily
understand which object is this.
Per-Action Repository :- If at all this type of repository is selected , for every action a Separate
individual repository is created automatically and managed by QTP.
• For sample test we go for per-action repository
• Per-action repository can’t be Re-usable
• Space required for storage is Less
• Execution speed is fast
Shared Repository :- If at all this type of repository is selected ,then one need to create the shared
repository manually and associate it to the corresponding test manually.
• For long run we go for shared repository even though we need to create manully.
• Shared repository can be re-usable
• Space required for storage is more
• Execution speed is slow
• Easily maintenance
Object Identification :
Object Identification concept is based on 4-types of properties and an Ordinal Identifier.
Those 4-Types of properties :-
BFP
MP M
I I
OFP
AP AP
………………. ……………….
……………… II ……………… II
OI
OI
……………….
……………….
………………
……………… III III
A
All
I
All MP + All BFP
All AP I May be/All AP
……………
………….. Fresh
OI OFP
OI II ………………. II ……………….
III ………………. ……………… ………………
………………
How QTP will Learns the object’s properties ?
With Normal Brain only
First of all QTP will Learn all the list of MP then it will STOP and think whether these
properties are sufficient to Identify the object Uniquely.
* If it feels satisfy then it will STOP Learning, other wise Learn the 1st AP, STOP thinks whether all
these properties are sufficient to Identify the object Uniquely.
If it feels satisfy then it will STOP Learning, other wise Learn the 2nd AP, STOP thinks whether all these
properties are sufficient to Identify the object Uniquely.
If it feels satisfy then it will STOP Learning, other wise Learn the 3rd AP, STOP thinks whether all these
properties are sufficient to Identify the object Uniquely. …..
It will continue the above process till it feels Satisfied or Up to the End of AP list.
At the end of AP list also if it feels not satisfied the Finally it will Learn the Ordinal Identifier and
STOP learning.
First of all QTP will use all the properties presented in the Object Repository Except the Ordinal
Identifier and try to identify the object. If it fails, it will check whether the Ordinal Identifier is available
or NOT. If it is available QTP will identify the Object Roughly or other wise STOPs.
* Once the application is stable then only we go for Automation, till such time we do only
manual testing.
1. Location :- If at all the location is selected as an OI then the QTP will generate the Numbers from
0,1,2,3……based on the Sequence of the objects located in the Application.
2. Index :- If at all the index is selected as an OI then the QTP will generated the Numbers from
0,1,2,3…. based on the Sequence of the Programs of the objects.
Object Spy
It is a handy / useful feature provided by QTP which shows the complete object
information like List of Properties , List of Methods, Syntaxes of Methods and Description of
Methods then and there and Immediately on the spot of both Test Object as well as Run Time
Objects.
Runtime Object :- Run time object is he Original objects presented in the AUT .
Test Object :- Test object is the Reference object for the Runtime object created by QTP and used by
QTP to identify the Runtime object during the Execution.
-: The End :-
Pls. leave your feed back (both +ve and –ve ) at kanakadria@yahoo.co.in