Software Development and QA Tips

Dev and QA Tips How To Perform Smart Identification in QTP?

How To Perform Smart Identification in QTP?

How To Perform Smart Identification in QTP?

QTP is commonly used in quality assurance companies, and it is particularly well suited to testing.

Smart Identification: If QTP cannot find any object that matches the learned object description, or if it finds multiple objects that match the description, it ignores the learned description and instead uses Visual Relation Identifiers (VRI) to uniquely identify an object. If VRI is not defined or if VRI is unable to uniquely identify the object, QTP uses the Smart Identification technique to try to identify the object. Smart Identification is more sophisticated than traditional identification, but it is also more versatile. As a result, even if the learned description fails, a Smart Identification definition can most likely assist QTP in locating an object if it exists.

In the Smart Identification mechanism, two kinds of properties are used:

  • Base Filter Properties: The most fundamental features of a test object class are those whose values cannot be changed without changing the core of the original object.
  • Optional Filter Properties: Properties that can be used to identify objects that belong to a given class. Although these features are unlikely to change regularly, they can be ignored if they are no longer relevant.
 

Enabling Smart Identification in QTP:

  1. On the QTP menu, go to Tools → Object Identification.
  2. Choose the Environment and the Object Class to Test.
  3. Select 'Enable Smart Identification' from the drop-down menu. Please check the box.
  4. Click Configure to select the Base and Optional Filter Properties.
  5. Customize your properties.
  6. Go to the Object Repository to see if Smart Identification is enabled.
  7. Check to make sure: Add the enabled object to the Object Repository (OR) and make sure Enable Smart Identification (ESI) is set to True under Object PropertiesAdditional DetailsEnable Smart Identification (ESI). Enable Smart Identification (ESI) will be deactivated if it is not set to True.
 

Disabling Smart Identification:

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

Schedule a Call

Disclaimer

This publication is for informational purposes only and nothing contained in it should be considered legal advice. We expressly disclaim any warranty or responsibility for damages arising out of this information and encourage you to consult with legal counsel regarding your specific needs. We do not undertake any duty to update previously posted materials.