|
按精华区,弄了这一脚本。发现验证点有问题。
'$Include "sqautil.sbh"
Sub Main
Dim Result As Integer
dim dp as long
dim x as integer
dim num1 as string
dim num2 as string
dim sum as string
'Initially Recorded: 2003-7-18 8:51:18
'Script Name: Calcular
StartApplication "C:\WINDOWS\system32\calc.exe"
dp=SQADatapoolOpen("jsq")
for x=1 to 3
Call SQADatapoolFetch(dp)
Call SQADatapoolValue(dp,1,num1)
Call SQADatapoolValue(dp,2,num2)
Call SQADatapoolValue(dp,3,sum)
Window SetContext, "Caption=Calculator", ""
InputKeys num1 &"{+}"& num2 &"{ENTER}"
Result = LabelVP (CompareNumeric, "Text="& sum &".", "VP=Alphanumeric;Value="& sum &".")
next
Call SQADatapoolClose(dp)
Window CloseWin, "", ""
End Sub
如果把 Result = LabelVP (CompareNumeric, "Text="& sum &".", "VP=Alphanumeric;Value="& sum &".")这行注掉,可以回放,也能看到系统读datapool中的三组数据。
不注掉,则通不过。
robot 2003
jsq datapool中弄了三列数据num1,num2和sum
分别为:
1,2,3
3,3,6
3,2,5
请问问题出在哪?要怎么改动? |
|