OBJECT IDENTIFICATION
We can instruct to Quick Test to capture object identification properties before recording test object to Object Repository. In other words we can configure test object properties before capturing them to Repository.
How does Quick Test capture test object properties to repository?
Object Learning/Recording: - While learning test object properties to repositories Quick Test follows the below settings.
a. Mandatory properties
b. Assistive properties
c. Ordinal Identifier properties
d. Base filter & Optional filter properties(Smart Identification)
Navigation: Tools ->Object Identification
a. Mandatory properties: - Initially QTP captures Mandatory properties to create unique description for test object in Object Repository.
b. Assistive properties: - If Mandatory properties are not sufficient then QTP will capture Assistive properties one after one until unique description is created.
C.Ordinal Identifier: - This section contains 3 properties for web based applications. If Mandatory and Assistive properties are not sufficient to create unique description for test object, then Quick Test will assign unique value (0, 1, 2 …) for Ordinal identifier property.
Note1: Mandatory & Assistive properties sections contain object physical properties and Ordinal Identifier section contains external properties which are created by QTP.
Note2: Creation Time property available only for Browser object
Location: - QTP assigns unique numeric value based presence object in the application window/Dialog/Browser/Page.
Index: - QTP assigns unique numeric value based on object presence in source code.
Creation Time: - It is available only for web browser objects; QTP assigns unique numeric value based on creation time of browser object in repository.
d. Enable Smart Identification: - If “Enable Smart Identification” option is selected then Quick Test captures Base filter and Optional filter properties to Object Repository.
How does Quick Test identify run-time objects on application?
While execution Quick Test uses 3 levels of identifications to identify object on AUT.
1. Normal identification
2. Smart identification
3. Ordinal identifier
1. Normal identification: While execution initially QTP consider description properties (mandatory and/or assistive) to identify run-time object on AUT. If description properties are not matched with run-time object or more than one object is matched then QTP will check the availability of Smart Identification for test object in OR.
2. Smart Identification: It is a mechanism provided in QTP which enables QTP to identify dynamic objects though their values are changed frequently.
If Smart Identification is available in OR then QTP ignores description properties and invokes Smart identification mechanism. Using Smart identification Base filter and Optional filter properties QTP can identify run-time object on AUT.
4. Ordinal Identifier: If description properties are matched with more than one run-time object, then QTP will take the help of Ordinal identifier property to identify corresponding actual object on AUT. (Assume that Smart Identification is disabled for the test object).
No comments:
Post a Comment