Object Identification
->How Quick Test Professional learns objects in application stores pbject as Test Object,Determining the class it fits
Types of Object Identification
a)Normal Identification
1.mandatory Proporties
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 from the following in case of normal identification:
First of all the qtp learns all the mandatory properties at a time and thinks
these properties are sufficient to identify the object uniquely.If it feels sufficient
then it stops learning,otherwise,
It learns first assistive property and once again stops and thinks,like this qtp
learns one by one.At the end of assistive properties list also,if it feels not satisfied
and it finally ges to ordinal identifier
Qtp learns from 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 two 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 to optional filter
properties and learns one by one.Still it feels not satisfied finally it goes ordinal identifier.
Ordinal Identifiers
We have There types of ordinal identifiers
1)location:This is based on location of the object in AUT,which(location) start from zero
2)index:Based on sequence of programs,this start from zero
3)Creation Time:Based on loading time of the web objects.qtp generatesnumber like 0,1,2
Tool Settings
Qtp is a I-tier application,setting tools globally is not posible
To make globally,qtp is providing a feature called "Generate Script"
Steps
1)Settings available in 3 areas
1)file->settings
2)Tools->Options
3)Tools->Object Identification
2)Perform settings and generat script
3)Sharing script with the team and asking them to execute
Object Identification Dialog Box
Navigation->Tools->Object Identification
Types of Objects
There are two types of Object
1.Test Object
->Objects in OR are test Objects
->Test object Helps QTP to identify and check the object during the run session
2.Run ime Objects
->Objects which are in script are run time objects
->it is the actual object in your website or application on which methods are performed during run session
No comments:
Post a Comment