Header Ads

Object Identification Configuration or Process For QTP Or UFT


Overview:
Most of the objects,we encounter day by day,may have few or may have many properties.For better understanding let us sat properties as attributes.But when it comes for recognizing objects via QTP/UFT.Qtp recognizes object using 2 0r 3 important properties.
Before QTP really understands the object,It has a mechanism to set the context.Context is nothing but to help QTP to identify the application under test. We set this context via Add ins. Add ins give QTP the correct files to be loaded to identify the objects properly.
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

Object Identification Types
a)    Normal identification

1)   Mandatory properties
2)   Assistive properties

b)    Smart identification

1)    base filter properties
2)    optional filter properties

c)    Ordinal identifier

1)    location
2)    index
3)    creation time(only for browser)

QTP learns information in the following in case of normal identification:

First of all the qtp learns all the mandatory properties at a time and tries to identify the object, with these properties uniquely.If it feels sufficient then it stops learning.If otherwise,it learns first assistive property and once again stops and tries to identify the object.like this qtp learns all requierd properties one by one. If the list of properties are enough to identify an object uniquely.It just stops.Now there might be situation,where, with all the assistive properties,QTP is not able to identify an object uniquely. Then QTP goes to Ordinal Identifier.


QTP learns information in the following in case of 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 feels 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 tries to identify 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.

Ordinal identifiers:

There are 3 types of ordinal identifiers available

1) Location: is based on object location in the AUT ,location starts from zero,Zero(x,y coordinate)
2) index: it is based on sequence of the programs, index starts from zero
3) Creation time: it is based on loading time of the web objects. qtp generates 0,1,2 like numbers.

Tool Settings Globalization:

As QTP is a I-tier(Stand-alone) application,making Tool settings globally is not possible.
For making tool settings global, QTP is providing a special feature called "Generate Script".

STEPS:

1) Settings available in 3 areas.
    a) File->Settings
    b) Tools->Options
    c) Tools->Object Identification

2) Perform required settings and generate Scripts
3) Share Script files to team members and ask them to execute those scripts.
Powered by Blogger.