51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

查看: 4343|回复: 6
打印 上一主题 下一主题

同步点(Synchronization Point)的问题,请进来指教

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2005-3-28 15:01:44 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
小妹初学WR,同步点(Synchronization Point)方面碰到一个问题:
系统中新的定单窗口由4个list组成,加载list里面的内容需要一定等待时间,否则不能进行下一步的操作。我碰到的问题是此时加入同步点,不知道该选择加哪一种?因为页面上完全加载后,没有什么”已加栽完毕”的提示或者图片。我试了Synchronization Point For Object/Window Property,好象也不对?怎么办啊?除了改等待时间外,是否此处就不能用同步点了???
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏

该用户从未签到

2#
发表于 2005-3-28 16:23:57 | 只看该作者
在这加载期间是否有某个控件比如按钮之类的被disable,如果有对它进行判断,不一定要对list进行判断;或者如果list内容的个数是固定的,可以对它的count属性进行判断
回复 支持 反对

使用道具 举报

该用户从未签到

3#
 楼主| 发表于 2005-3-29 09:40:02 | 只看该作者

shyfish再来看看

谢谢shyfish指点。
此过程没有按钮被disable,因此我尝试用你介绍的count属性进行判断,最后一个被加载的list的count属性是31,但是添加该同步点后(list_wait_info("selPrice","count",31,100);),不知为何,系统总是报错:

Window: "下单"
Object: "selPrice"
Error: Property not supported for this object class.
为什么这里讲不支持该属性啊???
回复 支持 反对

使用道具 举报

该用户从未签到

4#
发表于 2005-3-29 10:29:13 | 只看该作者
最后一个list有没有被识别?它在GUI File里的Description是什么?
回复 支持 反对

使用道具 举报

该用户从未签到

5#
 楼主| 发表于 2005-3-29 13:30:06 | 只看该作者

shyfish进来再指点下

GUI MAP EDITER里查到最后一个list的属性,应该是被识别了
{
class: list,
MSW_class: html_combobox,
html_name: selPrice
}
以下是GUI SPY识别的详细属性
{displayed: 1,width: 70,x: 102,y: 129,abs_x: 684,class: list,MSW_class: html_combobox,abs_y: 360,maximizable: 0,focused: 0,height: 26,active: 0,count: 31,MSW_id: 36,handle: 1705614,minimizable: 0,value: "#0",nchildren: 0,enabled: 1,TOOLKIT_class: "Internet Explorer_TridentCmboBx"}
回复 支持 反对

使用道具 举报

该用户从未签到

6#
发表于 2005-3-29 16:24:58 | 只看该作者
The following object properties are common to all Web objects except Web frame (html_frame) objects: Interactive Corporation in the United States and/or other countries.
bgcolor        The object background color.
class        The  WinRunner class of the object.
color        The object  color..
focused        Indicates whether the object has the focus. Possible values:                 1: True         0: False
height        The object  height (in pixels).
tag_name        The object's HTML tag.
width        The object  width (in pixels).

In addition to the properties supported for all Web objects and for objects in Internet Explorer, the following properties can be used when working with objects from the html_listbox and hmtl_combobox MSW classes:
element_name        The name property specified within the <INPUT> tag.
is_multiple        Indicates whether the list offers a multiple selection option. Possible values:                 1: True         0: False
name        The WinRunner name for the object. This is the value that WinRunner uses as the logical name of the object. The value of this property is taken from the list or combo box name property.
selection        The items that are selected in the list (separated by ;)

上面是TSL Reference里的说明,可能因为MSW_class属性是html_combobox,所以就只能使用Web的专用属性了。所以可能html_combobox就只能使用上面的这些属性了。我也不太清楚,你可以用上面的属性试试看
不过按照SPY的识别情况来看可能又不是这个问题

[ Last edited by shyfish on 2005-3-29 at 17:41 ]
回复 支持 反对

使用道具 举报

该用户从未签到

7#
 楼主| 发表于 2005-3-30 16:32:17 | 只看该作者

谢谢shyfish的帮助

今天试了几条路:
1.因该对象被WR识别出来是html_combobox,属于自定义对象,于是试着把它映射到标准的类(listbox),然后添加count属性,失败
2.映射为 combobox,还是失败
2.干脆定义为虚拟对象,结果肯定是失败了。:(

也许正如shyfish所说,要用Web的专用属性才行??
回复 支持 反对

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-5-12 13:10 , Processed in 0.076304 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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