can anybody tell me that how can we know that qtp doesnt identify the objects.
there is object identification which has 4 types of properties
1) mandatory 2) assistive 3) smart identification 4) Ordinal
then when & how can we know that qtp didnt support the 1st 2 properties & we need to go for 3rd one
Object identification is done by qtp, its internal to QTP. The properties though can be configured in Tools -> Options, so based on your requirement you can configure the mandatory properties, assign them weights.
Smart Identification only gets invoked, if its been configured for the object or for the specific object type in either OR, File settings, Object Identification.
While executing the script, QTP should make sure the existence of that particular object in Object Repository on which action is performed, so the object identification process will be:
- QTP first looks into Mandatory & Assistive properties, if it does not find the object then
- QTP enables Smart Identification i.e. Base Filter & Optional Filter properties, still if it does not find the object then finally...
- QTP will use Ordinal Identifier, in which it will identify the object using Object INDEX, object LOCATION or object CREATION TIME. These properties of object are the UNIQUE properties and hence QTP will identify that object.