Object Identification Mechanism
1.
Mandatory Property
-Description Property in QTP- combination of Mandatory and Assistive Property
2.
Assistive Property
3.
Ordinal dentifier- if qtp not able to identify object using mandatory and assistive property then it goes for ordinal property
1.Location
2.Index- when properties of two objects are same then it goes for index(starts with zero)
3.Creation Time- used for brwoser- if 3 browsers are opened, it will perform action on 1st
browser("CreationTime:=1").Close
4.
Smart Identification- It is technique to identify object with combination of two filter properties:
base filter property
optional filter property
local setting-individual-
tools-object identification-web-select button-Global Setting
file -setting-run-disable smart identification during run session
Object
Identification Mechanism:
·
Mandatory property:
·
Frame
|
·
Name
|
·
Browser, page
|
·
None
|
·
Web Table
|
·
HTML Tag
|
·
WebList, WebRadioGroup
|
·
HTML tag ,Name
|
·
WebButton WebFile WebEdit WebCheckbox
|
·
HTML tag ,Name,Type
|
·
ViewLInk WebElement
|
·
HTML tag ,Inner Text
|
·
Web Area
|
·
HTML tag ,Alt(tool tip)
|
·
Image
|
·
HTML tag ,Alt, Image Type
|
·
Assistive: e.g Name in WebEdit
·
Ordinary identifier:
Location X,Y
Creation time: used for browser
Indexing- t overcome Location drawbacks
·
Smart Identification: inbuilt feature to
recognize object
Base filter properties(Mandatory & Assistive)
Optional Filter properties(Ordinary identifier)