51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

查看: 4002|回复: 1

[Robot] SQADatapoolOpen报错

[复制链接]

该用户从未签到

发表于 2004-7-23 10:59:43 | 显示全部楼层 |阅读模式
我用如下语句datapool=SQADatapoolOpen("ygq1")
报如下错误:Variable SQADatapoolOpen undefined
脚本如下:
Sub Main
    Dim Result As integer
    dim i as integer
    dim r as String
    'Initially Recorded: 2004-7-22  19:31:41
    'Script Name: test7
    'Result1=1
    StartApplication """D:\Program Files\Tencent\qq\QQ.exe"""   
    datapool=SQADatapoolOpen("ygq1")
   for i=1 to 5
    Call SQADatapoolFetch(datapool)
    Call SQADatapoolValue(datapool,1,r)
    Window SetContext, "Class=#32770", ""
    EditBox Left_Drag, "Label=QQÃÜÂ룺", "Coords=1,8,-5,8"
    InputKeys r
    EditBox Click, "Label=QQÃÜÂ룺", "Coords=5,7"
    InputKeys "{BKSP}"
    PushButton Click, "Text=µÇ¼"
    Window SetContext, "Caption=´íÎó", ""
    PushButton Click, "Text=·ñ(N)"   
    Window SetContext, "Class=#32770", ""
  next i
   Call SQADatapoolClose(datapool)
End Sub

'??????

该用户从未签到

 楼主| 发表于 2004-7-23 11:19:20 | 显示全部楼层
解决了,原来是少写了下面这句:
'$Include "sqautil.sbh"
回复 支持 反对

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-3-29 22:18 , Processed in 0.070794 second(s), 28 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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