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

script structure(脚本结构)

上一篇 / 下一篇  2007-02-05 16:02:56 / 个人分类:Robot技术

scrīpt structure51Testing软件测试网0a,QlOg}4Rs

Bpuoi2oJ C3E01.initialization(初始化)------All Robot scrīpts begin with the following commands:
O)a4Z5|p9Sb(f0      51Testing软件测试网cvehy)l*lX1bMzs$I
       Sub Main                    / Defines a subroutine named Main.
'^+[x2QrUpd C'zf0       Dim Result As Integer       /定义Result为整型变量
4ss,jW"i8z0       /two comment lines
s O!|*L,JjZ v0       'Initially Recorded: 06/16/98  14:08:33//when the scrīpt was recorded
P2A |I-p)Ot0       'scrīpt Name: CdOrder                  //shows the scrīpt name
B3S1Vn-{-z8t0
3z'RSb3p3[To~02.Window restoration (optional)/窗口恢复在回放。51Testing软件测试网)^%~qf_'y.h U
     
Y{2` fP'] TD;m @0      StartSaveWindowPositions 51Testing软件测试网I9s"_ ^8Vp}R Sr
       . . .                       ' Window restoration commands/窗口还原命令
'`e}-k reOfB0      EndSaveWindowPositions
&NN+B:@~0::Saving Window Positions after scrīpt Initialization
*L+c%Vm*}F/J)l4x] h03.scrīpt body (window context, user actions, verification points)51Testing软件测试网E,]G5|"lw a#]"f%x
  
Nw8nVu c0     3.1 Perform user actions/执行用户动作
[Zj3^j8tvh4VX0     3.2 Establish verification points/建立查证点51Testing软件测试网&@4xU0p2WH9W#_@$JC
    3.3 Set the context window./设置上下文窗口.Robot认为后来的动作和检查点是在这个窗口内执行的.
}P-LJJ}f b7G0   /
Hk m.sAh0

TAG: Robot技术

 

评分:0

我来说两句

Open Toolbar