打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
qtp

Smart identification is a fall back mechanism for when the description for the test object isn't good enough (matches multiple objects or none at all).

What happens is that if smart ID is enabled when the test is created (record/learn) then QTP stores some additional properties in the object repository and if the identification fails using the regular description it will attempt to use the properties in the smart ID.

One obvious difference between smart ID and regular description is that in regular description you have mandatory and assistive properties, when building the description QTP checks if the mandatory properties are enough in order to achieve uniqueness, if not the assistive properties are added one by one until uniqueness is achieved. Then only the properties that were used are saved in the description. Once the description is created all properties are equal if one differs the description doesn't match no matter if the mismatching property was originally defined as mandatory or assistive.

In Smart ID there are base and optional properties, all the base properties must match but the optional properties are treated differently.

  1. If we haven't yet achieved uniqueness add the optional property
  2. If with the property no object matches the smart ID description remove it and go to the next optional property
  3. If uniqueness is achieved stop otherwise smart ID failed

After running smart ID, if smart ID fails the behaviour depends on why we called it in the first place

  • Multiple matches -- Use the ordinal selector
  • No matches -- fail step

Note that starting in QTP 11 there is also the concept of VRI (Visual Relations Identification) which complicates issues a bit more...

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
Textual Searches on File Data Using Microsoft SQL Server 7.0
Nutch version 0.8.x tutorial
Development environment
YANG语法
Tizen Web Device API Reference
【Best of Innovation】2016 CES最佳创新奖(完整版)
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服