UFT – Smart Identification

UFT – Smart Identification:

Smart Identification is a mechanism to identify the objects in Object Repository when the normal mechanism fails. It is applicable only for Web Applications. This mechanism is used by UFT to identify objects at Run time. When UFT is unable to recognize objects using the normal method, it goes for the Smart Identification to identify the objects on the application.

It has two types of properties

  1. Base Property – Basic Property of an Object whose value cannot be changed.
  2. Optional Filter Property – Other properties which will assist in identifying the objects

Enabling Smart Identification in UFT:

  1. In UFT Menu, go to Tools –> Object Identification
  2. Choose Environment and Test Object Class
  3. Select ‘Enable Smart Identification’ Check box
  4. Click Configure to choose Base and Optional Filter Properties
  5. Add Properties
  6. Go to Object Repository to check if Smart Identification is Enabled
  7. Verify Check:- To verify that enabled object it working as pet the settings, add object to Object Repository(OR) and check under “Object Properties” ->“Additional Details”->”Enable smart identification” is coming as “True”, in case it is not enabled “Enable smart identification”(ESI) will come as disabled.

Disabling Smart Identification:

  1. To Disable Smart Identification go to File à Settings à Run
  2. Select ‘Disable Smart Identification during the run session’ Dialog box

More about Smart Identification:

If Smart Identification is disabled before adding objects, then UFT will not use Smart Identification after enabling it. Therefore Smart Identification should be enabled before adding objects to object repository.

Mechanism of Smart Identification:

HP UFT “forgets” the learned test object description and creates a new object candidate list containing the objects that match all of the properties defined in the Base Filter Properties list. UFT then uses Base Filter Property to reduce the Object Candidate list. And then it starts matching the properties in the optional filter property with the object list to remove the ones whose properties are not matching. The idea is to narrow down only to one object matching some or all of the saved description properties.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

call us