Finding Objects in an Object Repository in QTP Tool

You can use the Find and Replace dialog box to find an object property or property value in an object repository. You can also find and replace specified property values. You replace property values for objects in the local object repository using the Object Repository window. You replace property values for objects in shared object repositories using the Object Repository Manager.

1.JPG

To find an object property or property value in the object repository,

make sure that the relevant object repository is open (in the Object Repository window or Object Repository Manager).

LocalOR1.jpg

Click the Find & Replace button or select Edit>Find & Replace. The Find and Replace dialog box opens.

2 f& R select.JPG

Specify one or more criteria by which you want to search for the object property or property value.

  • Object Name
  • Object Type
  • Object Class
  • Property Name
  • Property Value
3 find and replace.JPG

If you specified a property value and want to replace it with a different value, enter the new property value in the New Property Value Box.

Specify the search parameters as follows:
  1. If you want the search to distinguish between upper and lower case letters, select Match Case.
  2. If you want the search to find only complete words that exactly match the single word you entered, select Match whole word.
  3. Specify the direction in which you want to search : Up or Down.
4.JPG

Perform the find or replace operation in one of the following ways. The search is performed on the entire object repository, starting with the currently selected object and in the direction you specified. To find the next instance, click Find Next again.

Reference

Selftechy.com

Up Next
    Ebook Download
    View all
    Learn
    View all