Friday 4 May 2012

Object Identification in QTP

Generally for every object 20-25 properties description are available in QTP, it recognizes object uniquely using 2 or 3 important one.

QTP has default object identification configuration for every environment, if we feel that configuration is not sufficient for recognizing objects in our application, we can configure some more.

There are three type of Object Identification:
  1. Normal Identification: Mandatory and Assistive Properties
  2. Smart Identification: Base Filter and Optional Filter Properties
  3. Ordinal Identifier: Location, Index and Creation Time (Only for Browser).
1. Normal identification:

First of all the QTP learns all the mandatory properties whether these are enough to identify the object uniquely. If it still can’t identify the object then it looks for assistive properties. Ordinal Identifier is used when mandatory and assistive properties are failed to identify the object.

2. Smart Identification:

Smart identification is an optional feature, if we feel normal identification is not sufficient for any object, and then we configure Smart Identification for that object, in order to avoid Ordinal Identifier.
After normal identification if QTP is not satisfied then it goes to smart identification. In smart identification 2 types of properties available, first QTP learns all base filter properties at a time and thinks whether these properties are sufficient for identifying the object uniquely. If it feels sufficient, then it stops learning otherwise it goes Optional Filter Properties and learns one by one. Still it feels not satisfied finally it goes to Ordinal Identifier.

3. Ordinal Identifier: For more information on ordinal identifier click here....


By: Mann Bhammar
      Test Analyst

1 comment:

  1. Good Post. Actually, I had read article about Smart Identification of QTP for Web application. It is very useful. Even there is some change on the source code of HTML after record the object.It is not bring up the fail report but pass the testing. It is really do work as smart.

    ReplyDelete