用或不用HTML DOM的原因

适合HTML DOM的原因:

  1.QTP only provides access to radio buttons through the WebRadioGroup rather than providing access to individual elements.

  2.QTP provides no way to access webpage style sheets to find out any CSS inplemented for it

  3.Normal QTP operations are not equipped to accomplish tasks.Examples include:

    1).Dynamically traversing upwards in object hierarchy (unless all required parent objects are present in the OR)

    2).When operations are not supported by QTP, e,g. retrieving the session cookie

  4.Performance is of importance

  5.Interacting with an object's style and currentStyle objects

  6.The application fails to respond to normal QTP operations

 

不适合HTML DOM的情况:

  1.When a QTP test object is working as expected.

  2.When there is no significant performance overhead.

  3.When your script is used by other automation developers with little knowledge of HTML DOM.

转载于:https://www.cnblogs.com/dushuai/articles/3147698.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值