QTP: Object Repository, Descriptive Programming and Beyond
QTP: Object Repository, Descriptive Programming and Beyond
Descriptive
Programming
and Beyond
Prepared by: Igor Gershovich
Object Repository vs. Descriptive
Programming –what to use?
There really is no “best way”
Use the method that gives your company the
best ROI, whether that be Object Repository
(OR), Descriptive Programming (DP) or a
mixture of both
OR Pros and Cons
PROS:
GUI Front end to examine all the objects in
the repository
Highlight in Application feature is great tool to
walk the object tree
No need to modify the script when object
properties changes
Easy to identify objects in AUT by Object
Logical names
Can be created independently from scripts
OR Pros and Cons
CONS:
Additional layer to maintain
to the shared OR
It won’t eliminate the need for Descriptive
PROS:
It’s a white box
CONS:
Lower Code Readability and requires more
Logical Name
Properties
OR: Object identification default
properties
Script playback using OR
RegEx icon
Object Smart Identification
Smart Identification is not Artificial
Intelligence
SI uses loose/unreliable object recognition
It’s recommended to disable SI for each and
every page/window/control using the Tools-
>Object Identification dialog (Recording)
Another way to disable SI: File -> Settings ->
Run -> Check the "Disable Smart
Identification during run session" check box
(Run-Time)
Smart Identification (SI)
Recording Options
SI Checkbox
Smart Identification (SI) Run
Option
SI Checkbox
Igor Gershovich
E-Mail: [email protected]
Phone: 720-933-9395