How QTP leans objects?

本文介绍了QTP在自动化测试中如何识别和学习测试对象的过程。包括观察并存储测试对象、考虑对象标识属性、添加辅助属性直至形成唯一描述,以及在必要时使用特殊顺序标识符来确保对象的独特性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

(1) It "looks" at the object being learned and stores it as a test object , determining in which test object class it fits. QTP might classify the test object as a standard windows dialog box, a web button, or a VB scroll bar object, for example.

 

(2) Then, QuickTest "considers" identification properties for the test object. For each test object class, QuickTest has a list of mandatory properties that it always learns;

   When QuickTest learns an object, it always learns these default property values, and then "looks" at the rest of the objects on the page, dialog box, or other parent object to check whether this description is enough to uniquely identify the object.

 

(3) If it is not, QuickTest adds assistive properties, one by one, to the description, until it has compiled a unique description;similar to when one person adds the hair length and color characteristics to his list

 

(4) If no assistive properties are available, or if those available are not sufficient to create a unique description, QuickTest adds a special ordinal identifier , such as the object's location on the page or in the source code, to create a unique description

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值