查看完整版本: 请问tsl函数web_sync()是做什么用的?

jianggw 2008-2-24 11:12

请问tsl函数web_sync()是做什么用的?

在自动录制bs程序时,会自动加进来。查WinRunner联机帮助,功能如下:
The web_sync function is recorded when navigating from one link to another within the same frame. WinRunner waits the maximum time between the clicks.  
    感觉像wait()的作用,但实际使用时经常等不到Web页面的完全显示,就点击其中的对象如按钮,导致报错,于是不得不将其替换为wait()函数。
    有人对web_sync()有研究么?

cs5202 2008-2-24 11:28

感觉可以试着延长Back up tesk script  automatically 的时间
我也是新手,只是提个建议:lol

lantianwei 2008-2-24 12:17

[quote]原帖由 [i]jianggw[/i] 于 2008-2-24 11:12 发表 [url=http://bbs.51testing.com/redirect.php?goto=findpost&pid=883065&ptid=106601][img]http://bbs.51testing.com/images/common/back.gif[/img][/url]
在自动录制bs程序时,会自动加进来。查WinRunner联机帮助,功能如下:
The web_sync function is recorded when navigating from one link to another within the same frame. WinRunner waits the maximum time bet ... [/quote]
web_sync()时间加长一点

jianggw 2008-2-24 14:34

很荣幸,版主亲自出马了。但是我试验过,仅仅加长时间,web_sync(5)变为web_sync(60),还是不如wait(5)改为wait(60)管用。

jianggw 2008-2-24 14:36

而且,如果network出现延迟或者server反映慢的话,60秒可能也不够用。就没有方法能够等待指定的object出现后再做后面的操作么?

lantianwei 2008-2-24 14:59

[quote]原帖由 [i]jianggw[/i] 于 2008-2-24 14:36 发表 [url=http://bbs.51testing.com/redirect.php?goto=findpost&pid=883122&ptid=106601][img]http://bbs.51testing.com/images/common/back.gif[/img][/url]
而且,如果network出现延迟或者server反映慢的话,60秒可能也不够用。就没有方法能够等待指定的object出现后再做后面的操作么? [/quote]
1.指定object的同步的方法是有的,你要自己找找
2.一般建议用sync,而不建议用wait,因为wait是死等
3.测试web我更建议用QTP,因为WR对WEB的支持没有QTP好,可能在有些对象上你会遇到问题
页: [1]
查看完整版本: 请问tsl函数web_sync()是做什么用的?