This article explains the details about the object identification and configuration.
As we know that there are around 25-30 object properties are available for each object in QTP. But QTP recognizes them by using only 2 to 3 properties.
By default QTP has certain configuration for each environment. We can add more properties if we feel that the default properties are not enough to identify the object.
In this article am going to explain the various object identification configurations available in QTP.
01.Normal Identification:
In this type of configuration,QTP uses two types properties to identify the object uniquely.
a. Mandatory Properties
b. Assistive Properties
In this configuration,QTP learns all mandatory properties at a time and thinks whether these properties are sufficient to identify the object uniquely. If it feels the properties are sufficient to identify the object uniquely then it stops learning.Otherwise,it learns the first assistive property once and stops and thinks and keep on repeating the steps until the object is uniquely identified.At the end of the assistive properties if QTP feels that the properties are not sufficient it finally goes to Ordinal Identifier.
02.Smart Identification:
In this type of configuration, QTP uses two types of properties to identify the object uniquely.
a.Base filter properties
b.Optional properties
This is an optional configuration.If we feel that the normal configuration is not enough to identify the object we can go for Smart Identification configuration. In this QTP learns all base filter properties at a time and thinks whether the properties are sufficient to recognize the object uniquely.If QTP feels the properties are sufficient then it stop learning.Otherwise, it goes to the optional filter properties and learns one by one.Then QTP keep on repeating the same step if it feel the properties are not sufficient. At the end of the assistive properties if QTP feels that the properties are not sufficient it finally goes to ordinal identifier.
03.Ordinal Identifiers:
We have 3 types of Ordinal Identifiers in QTP.
a.Index
b.Creation Time
c.Location
Index: This one is based on the sequence of the programs. It starts from Zero.
Creation Time:This one is based on the loading time of the web objects.It starts from Zero.
Location: This one is based on the object location on the AUT. It starts from Zero.
Settings:
Since QTP is a stand alone application, it's is not possible to configure the settings as Global. But QTP is providing a feature called "Generate Script" to configure the settings as Global.
01.The settings are available in 3 areas.
a.File> Settings
b.Tools> Options
c.Tools> Object Identification
02.Configure the required settings and generate scripts.
03.The script should be stored in VBS format and shared with the team members.
04.Launch the generated script across n-number of PCs to get the same settings.
As we know that there are around 25-30 object properties are available for each object in QTP. But QTP recognizes them by using only 2 to 3 properties.
By default QTP has certain configuration for each environment. We can add more properties if we feel that the default properties are not enough to identify the object.
In this article am going to explain the various object identification configurations available in QTP.
01.Normal Identification:
In this type of configuration,QTP uses two types properties to identify the object uniquely.
a. Mandatory Properties
b. Assistive Properties
In this configuration,QTP learns all mandatory properties at a time and thinks whether these properties are sufficient to identify the object uniquely. If it feels the properties are sufficient to identify the object uniquely then it stops learning.Otherwise,it learns the first assistive property once and stops and thinks and keep on repeating the steps until the object is uniquely identified.At the end of the assistive properties if QTP feels that the properties are not sufficient it finally goes to Ordinal Identifier.
02.Smart Identification:
In this type of configuration, QTP uses two types of properties to identify the object uniquely.
a.Base filter properties
b.Optional properties
This is an optional configuration.If we feel that the normal configuration is not enough to identify the object we can go for Smart Identification configuration. In this QTP learns all base filter properties at a time and thinks whether the properties are sufficient to recognize the object uniquely.If QTP feels the properties are sufficient then it stop learning.Otherwise, it goes to the optional filter properties and learns one by one.Then QTP keep on repeating the same step if it feel the properties are not sufficient. At the end of the assistive properties if QTP feels that the properties are not sufficient it finally goes to ordinal identifier.
03.Ordinal Identifiers:
We have 3 types of Ordinal Identifiers in QTP.
a.Index
b.Creation Time
c.Location
Index: This one is based on the sequence of the programs. It starts from Zero.
Creation Time:This one is based on the loading time of the web objects.It starts from Zero.
Location: This one is based on the object location on the AUT. It starts from Zero.
Settings:
Since QTP is a stand alone application, it's is not possible to configure the settings as Global. But QTP is providing a feature called "Generate Script" to configure the settings as Global.
01.The settings are available in 3 areas.
a.File> Settings
b.Tools> Options
c.Tools> Object Identification
02.Configure the required settings and generate scripts.
03.The script should be stored in VBS format and shared with the team members.
04.Launch the generated script across n-number of PCs to get the same settings.
0 comments:
Post a Comment