Object Identification is the place where you can defined the Properties QTP should fetch to store in the Object Repository.
To open Object Identification navigate to Tools -> Object Identification.
Under Environment select the Environment you want to work. For e.g., select Web. Now you can see all the test objects available for the selected environment (Browser, Frame, Image, Link…)
Select a particular Test Object say WebEdit and click on Add/Remove under Mandatory Properties. Select the property you want to add say name and click on OK.
Going forward whenever you add a WebEdit to Object Repository, QTP will take name as the mandatory property for WebEdit. Let’s try adding an Object. Go to google.com and the Search WebEdit. Now open Object Repository.
In Object Identification you can define the following options:
1. You can define the Mandatory and Assistive Properties QTP should taken when adding the Object to the Object Repository.
2. You can Enable/Disable Smart Identification. If Enabled, when adding object to Object Repository, QTP will enable Smart Identification for the selected Object.
3. You can define Ordinal Identifier for the selected Object. Will see Ordinal Identifier clearly in the upcoming post.
No comments:
Post a Comment