Quick Test Professional 中的智能识别是什么?
Quick Test Professional 中的智能识别是什么?
what is smart identification in Quick Test Professional?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
Quick Test Professional 中的智能识别是什么?
what is smart identification in Quick Test Professional?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
智能识别是当测试对象的描述不够好(匹配多个对象或根本不匹配)时的后备机制。
发生的情况是,如果在创建测试(记录/学习)时启用了智能 ID,则 QTP 会在对象存储库中存储一些附加属性,并且如果使用常规描述进行识别失败,它将尝试使用智能 ID 中的属性。
智能ID和常规描述之间的一个明显区别是,在常规描述中,您有强制和辅助属性,在构建描述时,QTP检查是否强制 > 属性足以实现唯一性,如果没有,则将逐一添加辅助属性,直到实现唯一性。然后,只有使用过的属性才会保存在描述中。创建描述后,所有属性都相同,如果有一个不同,则无论不匹配的属性最初定义为强制还是辅助,描述都不匹配。
在智能 ID 中,有基本和可选属性,所有基本属性必须匹配,但可选属性将被处理不同。
运行 smart ID 后,如果 smart ID 失败,则行为取决于我们首先调用它的原因
请注意,从 QTP 11 开始,还有VRI(视觉关系识别)的概念使问题变得更加复杂......
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.
After running smart ID, if smart ID fails the behaviour depends on why we called it in the first place
Note that starting in QTP 11 there is also the concept of VRI (Visual Relations Identification) which complicates issues a bit more...