Saturday, November 28, 2009

21. Object Repository:

This Object Repository is also called as Local Repository. Because we can use the captured objects only for the particular test. We unable to share the captured objects to any other test.

When you create an action in a test, Quick test creates a new local object repository that store objects used in the action. This local object repository is the default type of object repository.

A local object repository stores objects associated with a specific action, so that only that action can access the stored objects.

When you record a test, Quick test automatically saves the information about the objects that you record in the local object repository. Quick test creates separate local object repositories for each new action.

Object Repository is used to Recognize each and every objects to QTP.

To use Object Repository:

Step 1: Open the Application that you want to Recognize.

Step 2: Select Resource menu>Object Repository.

Step 3: Object Repository-All Object Repository dialog box appears.

Step 4: Select Object> Add Objects to Local to add the objects to Local Repository (or) click on Add Objects to Local icon in Tool Bar.

Step 5: After Clicking Add Objects to Local it shows Hand Symbol, by using this Symbol click on the application (Which you want) to Recognize to the QTP.

Step 6: After Capturing Object Selection-Add to Repository dialog box appears, Click on OK.

Step 7: Define Object Filter dialog box appears, select All Object types Radio Button to capture all the objects in the Application for Recognition, Click on OK.

Step 8: Now in the Object Repository- All Object Repository dialog box captures all the objects for application.

Step 9: Close the Object Repository-All Object Repository dialog box.

Step 10: Now just enter the script in the test.

No comments:

Post a Comment