Blog

QTP Object Identification

14/06/2011 14:35

There are four level of object identification present in QTP.

1.Mandatory Properties

2.Assistive properties

3.Ordinal Identifier

4.Smart Identification

 

It is very important to understand object identification mechanism, before started working on object's.So we will discuss all four level of identification in QTP.You can check these level of identification in QTP through Tools->Object Identification.

 

What is mandatory properties, it is nothing but set of object properties which required to make one unique identification inside QTP object Repository.

If this level of mechanism fails to idenitfy object uniquely, it goes to next level that is Assistove properties. You can also make changes in object properties which are listed in mandatory properties and assistive properties. Tools->Object Identification->Add/Remove Button.

 

Ordinal identifer basically have three unique properties of object. Location, Creation time and Index.

Location is something based on object's postioning on AUT(Application under test),location properties of object decided on based of thier position from top to bottom and left to right . The disadvantage of location property is if objects are overlapped the location property will be same.

 

Creation time always will be unique for each and every object present on AUT.

like creation time index will be also diffrent for each and every object. So how index property of each object assigned, if there are 10 text boxes it will assign index 0 based on the position of textbox. That means the first text box from top to botton and left to right will have index 0 and so on.

The disadvantage of index and creation time is, it is very time consuming while executing.

Smart identification is only applicable to web applications. If some of the object properties has been changed and smart identification is enabled it will identify objects based on other properties instead of throwing object identification Error.

The disadvantage with smart identification is sometimes it identify wrong objects.

  

First blog

13/06/2011 08:55

Our new blog has been launched today. Stay focused on it and we will try to keep you informed. 

You can post your queries here and we will try to respond you back within 2 days.