51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 864|回复: 3
打印 上一主题 下一主题

What the meaning of .........(QTP question)

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2007-8-13 18:19:05 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
what the meaning of :
If Info="" and Browser("Shopping XPerience").Page("Confirmation - HP's Small").WebElement("Review your order").WaitProperty("outertext","Review your order ",2000) then
  checkflag=1
  Info="Review order page appear"
end if
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2007-8-13 20:13:38 | 只看该作者
很简单的一个逻辑啊,具体什么地方看不懂?
回复 支持 反对

使用道具 举报

  • TA的每日心情
    无聊
    2015-3-12 14:20
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]测试小兵

    3#
    发表于 2007-8-13 21:25:58 | 只看该作者
    Return Value
    A Boolean value.  Returns TRUE if the property achieves the value, and FALSE if the timeout is reached before the property achieves the value. A FALSE return value does not indicate a failed step.

    WaitProperty的返回值是一个布尔值
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    4#
    发表于 2007-8-13 23:49:36 | 只看该作者
    if then里面的條件,有2個,用and連接,如果2條件都滿足,那么執行這2句:checkflag=1
      Info="Review order page appear";
    說些第二個條件,設的一個同步點,應該是檢查"outertext"屬性值="Review your order,同步等待2000毫秒,如果相等,那么同步點返回true,不相等就返回false。

    不知道這樣子說,對不……
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

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

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

    GMT+8, 2024-9-21 05:37 , Processed in 0.064141 second(s), 23 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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