51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2269|回复: 2
打印 上一主题 下一主题

[求助] Object synchronization timeout与Browser navigation timeout有什么区别?

[复制链接]
  • TA的每日心情
    开心
    2015-5-5 13:21
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]测试小兵

    跳转到指定楼层
    1#
    发表于 2013-11-21 14:15:33 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
    Object synchronization timeout:XX seconds. 同步的延时时长(默认20秒),这是QTP在等待一个对象显示的时间。
    Browser navigation timeout:XX seconds:设置运行测试步骤之前等待网页加载时间的最大值(默认60秒)

    具体有什么区别啊?
    分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
    收藏收藏
    回复

    使用道具 举报

  • TA的每日心情
    擦汗
    昨天 08:59
  • 签到天数: 1021 天

    连续签到: 2 天

    [LV.10]测试总司令

    2#
    发表于 2014-6-20 13:44:52 | 只看该作者
    Object synchronization timeout:XX seconds. 同步的延时时长(默认20秒),这是QTP在等待一个对象显示的时 ...
    wsryyffs 发表于 2013-11-21 14:15



        QTP Timeout Settings1.      Object Sync Timeout:这是QTP在等待一个对象显示的时间

    具体设置方法: Test Settings, Run Tab, the “Object Synchronization timeout:” setting.

    请注意在8.x版本中单位是毫秒,而在9.x 就变成秒了。

    程序中设置: Setting(“DefaultTimeout”) [=milliseconds]

    2. Browser Navigation Timeout 帮助里这样定义 “sets the maximum time (in seconds) that QuickTest waits for a Web page to load before running a step in the test”. 那和上面的Object Sync Timeout setting有什么区别的,MI没有说,我猜想是在一个显示很缓慢的页面的时候使用吧。针对Navigation而不是一个对,从脚本看:

    Browser(“Browser”).Page(“Page”).WebRadioGroup(“Name:=txt_Name”,”html tag:=INPUT”).set “Test”

    这可能是一开始Browser的等待时间吧。

    具体设置方法: Test Settings, Web tab, “Browser navigation timeout:” X “seconds”

    在程序中怎么实现还没有解决,谁可以帮助我?

    3. Default Load Time 在 QTP help 这样定义 “Instructs QuickTest to add a specified number of seconds to the page load time property specified in each Page checkpoint.”. 很迷惑,按照帮助的理解就是检查点额外的等待时间,过了这个时间再没有出现检查的数据可能就会返回错误了。
    具体设置方法: Options, Web Tab, “Add” x “seconds to page load time”
    程序中设置: Setting(“DefaultLoadTime”) [=seconds]

    4. Activate Window 定义“specifies the time (in tenths of a second) that QuickTest waits before it sets the focus on an application window when using the pointing hand to point to an object in the application (for Object Spy, checkpoints, Step Generator, Recovery Scenario Wizard, and so forth)”. 我一直使用的默认的值,挺好的。呵呵。
    具体设置方法: Options, General tab, “When pointing at a window, activate it after” X “tenths of a second”
    程序中设置,暂无。

    5. .Exists(Timeout)用的是毫秒作为单位.

    6.  .WaitProperty(x, y, Timeout) 用的是毫秒作为单位.

    7. Wait seconds [, milliseconds]

    这个就是我们经常用的wait,不过后面可以选择毫秒可能有的人就不知道了。



    以上是我总结的一些QTP关于时间的设置的,很多概念自己也不算清楚,希望和大家一起在学习中进步。
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    擦汗
    昨天 08:59
  • 签到天数: 1021 天

    连续签到: 2 天

    [LV.10]测试总司令

    3#
    发表于 2014-6-20 13:45:14 | 只看该作者
    这些只是给你的一个参考~~
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

    站长推荐上一条 /1 下一条

    小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

    GMT+8, 2024-9-20 13:54 , Processed in 0.086594 second(s), 27 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

    快速回复 返回顶部 返回列表