不要追求绝对的公平,红尘之中没有公平而言,人活一世,难得糊涂。
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 structure
51Testing软件测试网0a,QlOg}4RsBpuo i2oJ C3E01.initialization(初始化)
------All Robot scrīpts begin with the following commands:O)a4Z5|p9Sb(f0 51Testing软件测试网cvehy)l*lX1bMz s$I Sub Main
/ Defines a subroutine named Main.'^+[x2QrUpdC'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 nameB3S1V n-{-z8t03z'RSb3p3[To~02.Window restoration (optional)
/窗口恢复在回放。51Testing软件测试网)^%~q f_'y.h
U Y {2` fP']TD;m
@0 StartSaveWindowPositions
51Testing软件测试网I9s"_ ^8Vp}RSr . . .
' Window restoration commands/窗口还原命令'`e}-kreOfB0 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|"lwa#]"f%x
Nw8nVu c0 3.1 Perform user actions/执行用户动作
[Zj3^j8tvh4VX0 3.2 Establish verification points/建立查证点51Testing软件测试网&@4x U0p2WH9W#_@$JC
3.3 Set the context window./设置上下文窗口.Robot认为后来的动作和检查点是在这个窗口内执行的.
}P-LJJ }f
b7G0 /
Hkm.s Ah0
相关阅读:
- GUI TEST CLEARQUEST (Spark.lee, 2007-1-04)
- 测试用户名及密码的登录小程序 (Spark.lee, 2007-1-05)
- 检查当前是否有ie浏览器开着,如开着,需把它关掉 (Spark.lee, 2007-1-05)
- 用Robot实现登陆界面的大数据量测试 (Spark.lee, 2007-1-05)
- 用Robot实现登陆界面的压力测试 (Spark.lee, 2007-1-05)
- 修改table中的数据,使用SQASetProperty函数 (Spark.lee, 2007-1-05)
- SQAWaitForPropertyvalue 函数使用 (Spark.lee, 2007-1-05)
- 函数调用 文件关联 (Spark.lee, 2007-1-05)
- SQAUtil.sbl (Spark.lee, 2007-1-05)
- SQADatapoolOpen参数解释 (Spark.lee, 2007-2-05)
收藏
举报
TAG:
Robot技术