Professional Documents
Culture Documents
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
Object Repository is a place where QTP stores learned objects QTP uses default Object Identification properties: mandatory and assistive to learn objects into OR
Object Repository
QTP finds the Object in Object Repository using object Logical Name and Object Hierarchy QTP retrieves Test Object properties from OR QTP searches actual application for the Object with the same properties as the OR Test Object and performs user action
QTP searches the Application Under Test (AUT) for the Object using Descriptive properties and performs user action
.GetTOproperty/SetToProperty refers to the properties stored in OR .GetROProperty property refers to the AUT Object property (Run-time) .Object.<property/method> refers to the AUT Object NATIVE properties/methods
Regular Expressions in OR
Regular Expressions in OR
RegEx icon
Smart Identification is not Artificial Intelligence SI uses loose/unreliable object recognition Its 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)
SI Checkbox
Resources
QA Forums www.sqaforums.com HP/Mercury QTP User guide Knowledge inbox (by Tarun Lalwani) http://www.knowledgeinbox.com/ Microsoft TechNet http://www.microsoft.com/technet/scriptcenter/
Igor Gershovich