|
你把头文件放在了脚本中,应该修改为
'$Include "SQAUTIL.SBH"
Sub Main
Dim Result As Integer
dim x as integer
dim dp as long
dim user as string
dim pw as string
dp = sqadatapoolopen("test");
for x =1 to 5
call sqadatapoolfetch(dp)
call sqadatapoolvalue(dp,1,user)
call sqadatapoolvalue(dp,2,pw)
'Initially Recorded: 2004-9-27 10:14:08
'Script Name: new1
Window SetContext, "Class=Shell_TrayWnd", ""
Toolbar Click, "ObjectIndex=2;\;ItemText=Æô¶¯ Internet Explorer ä¯ÀÀÆ÷", "Coords=8,16"
Window SetContext, "Caption=about:blank - Microsoft Internet Explorer", ""
ComboBox Click, "ObjectIndex=4", "Coords=830,4"
ComboListBox VScrollTo, "ObjectIndex=4", "Position=1"
ComboListBox Click, "ObjectIndex=4", "ItemData=1731544"
Browser SetFrame,"Type=HTMLFrame;HTMLId=mainFrame",""
Browser NewPage,"HTMLTitle=¾­¼Ã»§¿Ú×ۺϹÜÀí-¼à¹Üϵͳ",""
EditBox Click, "Type=EditBox;Name=loginName", "Coords=40,11"
InputKeys user
HTMLTable Click, "Type=HTMLTable;Index=3", "Row=1;Col=4"
EditBox Click, "Type=EditBox;Name=password", "Coords=66,9"
InputKeys pw
PushButton Click, "Type=PushButton;Name=Submit"
Window CloseWin, "", ""
next x
call sqadatapoolclose(dp)
End Sub |
|