不要追求绝对的公平,红尘之中没有公平而言,人活一世,难得糊涂。                                           it is no use doing what you like, you have got to like what you do.

修改table中的数据,使用SQASetProperty函数

上一篇 / 下一篇  2007-01-05 12:02:21 / 个人分类:Robot技术

代码演示的是修改table中的数据,使用SQASetProperty函数,演示程序采用VB编写:下载地址如下:
%BI4N5\Z)R,FMcJ0
,f q*k A4JzR0
?^:?iD)G&W0Sub Main
z` l7ozu0     Dim Result As Integer51Testing软件测试网5V$c(x,R:x8ysY1`z

0Ag8Gkb&M^K+g0     'Initially Recorded: 2005-11-1  11:34:1351Testing软件测试网3Vs%b^'U0t2Y:h7q1U
    'scrīpt Name: table51Testing软件测试网@+G9M"Gkv'h
51Testing软件测试网Ui'~@ll5T
    StartApplication """C:\Documents and Settings\HailongWang\桌面\flex\Project1.exe"""
.B;J'Z-q,nB|q0     51Testing软件测试网X%J;v!B!j1g @IQ
    Window SetContext, "Type=Window;Name=Form1", ""51Testing软件测试网!|nf1u$NXhF\
    '定位到修改的单元格
3GRy[g{0     result=SQASetProperty("Type=Generic;Name=MSF", "Row", 0)
7I un!^Z$S0     result=SQASetProperty("Type=Generic;Name=MSF", "Col", 0)
yB m9|!bg)u3`0     '修改数据51Testing软件测试网3UH ?HE!b"c)a;Tb
    result=SQASetProperty("Type=Generic;Name=MSF", "Text", "51Testing")51Testing软件测试网!Ou)A(BPw:M
  51Testing软件测试网O@Eq w_ u
End Sub

TAG: 软件测试技术 Robot技术

 

评分:0

我来说两句

Open Toolbar