1 / 16

Object Repository Lesson

Object Repository Lesson. Object Repository & Object Identification and Object Spy. Introduction to Object Repository. Object Repository. Object Repository is a file in which QTP can stores the properties of objects from a window/web application. Types of Object Repositories.

adie
Download Presentation

Object Repository Lesson

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Object Repository Lesson Object Repository & Object Identification and Object Spy

  2. Introduction to Object Repository

  3. Object Repository • Object Repository is a file in which QTP can stores the properties of objects from a window/web application.

  4. Types of Object Repositories • Local Object Repository : For every action by default qtp will create and manage one local repository can be used only by that action. • Shared Object Repository : When ever we feel some common object info is required by many actions present in diff test(Scripts)then the corresponding objects info is suggested to be stored in the Shared Repository.

  5. Types of Object Repositories Shared Object Repository Local Object Repository Object Repository

  6. Introduction to Local Object Repository Post-Recording While Recording a Test Quick Test creates a new, empty object repository. • If you want to add additional test objects to the local object repository, you are allowed to do so using Object Repository window. Local Object Repository for Action1 Local Object Repository for Action2 • When Quick Test learns new objects, it automatically stores the information about those objects in the corresponding local object repository. • The Object Repository window also helps you to manage Test Objects stored in it. • It will not add the objects, if the same are available in the associated shared object repository. Local Object Repository Local Object Repository

  7. Adding Objects to Local Object Repository Test Script • Adding a Test Object Using the Add Objects to Local Option • Adding a Test Object to the Local Object Repository by Selecting from an Active Screen

  8. Handling Objects in the Local Object Repository Highlight Objects in Application Locate Objects in Repository Edit Object Properties and Details Update Object from Application Adding/Deleting Properties Delete Objects Define New Test Object

  9. Introduction to Shared Object Repository Preferable to Local Object Repositories incase of Dynamic Applications Test 1 It is the commonly used repository in case of major automation projects It’s administration cost is more Test 2 Objects in a Shared Object Repository are managed by using Object Repository Manager New Shared Object Repositories can be created, manually and associate with actions Test 3 Shared Object Repository

  10. Managing Objects in Shared Object Repository Compare

  11. Shared Object Repository – Key Points Points to Note • Multiple shared object repositories can be associated to one action, and vice versa. • If an object exists in both Shared and local repositories, then during playback, QTP gives priority to the Local Object repository. • If an object with the same name is located in more than one shared object repository linked with the same action, the first occurrence of the object will be used by that action. • You are not allowed to modify properties of Shared Object Repository from Local Object Repository window. • QuickTest uses the specific shared object repository for the selected action. • If QTP learns that a test object is already existing in either shared or local object repository, it will not add the same again to the Local Object Repository. • Objects from Local Object Repository can be exported to Shared Object Repository. • Objects from Local Object Repositories associated with the action can be merged directly to the Shared Object Repository associated with the same action.

  12. Object Identification • Object Identification is a default mechanism followed by QTP to recognize objects from a Application • Using Object Identification QTP recognize an object with its Mandatory Assistive and Ordinal Identifier properties.

  13. How QTP Identifies An Object Using Object Identification

  14. Object Identification mechanism to recognize a web object

  15. Object Spy • Object Spy enables you to view both the run-time object methods and the test object methods associated with an object and to view the syntax for a selected method. You use the Object Spy pointer to point to an object. • The Object Spy displays the object hierarchy tree and the run-time object methods or test object methods associated with the selected object in the Methods tab of the Object Spy dialog box.

  16. Object Spy

More Related