QTP 对象识别机制

上一篇 / 下一篇  2010-04-26 21:52:36 / 个人分类:QTP


  1. Normal case.

    QTP recognizes all objects in the Application under test using the set of mandatory properties that it stores for all Test Objects while recording. If QTP is not able to recognize the objects using the set of mandatory properties it uses another set of properties called the assistive properties. Incase the assistive properties are also not enough to uniquely identify an object QTP resorts to using the ordinal identifiers for the object that are properties like the index, location and time of creationof theobject. If all this fails QTP resorts tothe smartidentification mechanism. 

  1. Smart indentify

If you invoke the smart identification then also first QTP will try to identify
the object by using normal identification process. That is the above process
(mandatory and assistive ).

 If the normal identification fails then it will come to the smart
identification. And forget about the normal identification also all those
properties learnt in the normal identification. And now it will using all the
base filter properties at time and tries to identify the object uniquely. If at
all it feels that these are sufficient then it will use these properties to
identify the object uniquely. Otherwise take the first optional filter property
and same process will continue as above till the object is identified uniquely.
If at all the smart identification is also fails then it will go to use the
ordinal identifiers. This the actual process of identification.





Open Toolbar