不要追求绝对的公平,红尘之中没有公平而言,人活一世,难得糊涂。
it is no use doing what you like, you have got to like what you do.
函数调用 文件关联
上一篇 /
下一篇 2007-01-05 12:22:23
/ 个人分类:Robot技术
库文件 rec, sbl文件, sbl可以所有project共享而rec只有单个project可用.
X;?G1gqo#d0头文件 sbh文件, 你能在里面做:
8Q1by+H3GkH)A%U0 1.定义全局常量变量变;
51Testing软件测试网*WMT'S6KgjU w 2. 宣告(Declare) 在库文件(sbl or rec) 的函数(function) or 过程(sub)
51Testing软件测试网)L,V\Bcmp1Fx,_DI0脚本(也是rec), 以及sbh,shl如何关联..
&^2p.f:?aKO2[w:i051Testing软件测试网W!lyk'yMP&O典型步骤照着做一次就明白了.
51Testing软件测试网~A
XaskV3\1Wr2hq!uR|'P01.建个sbl,名为Examle 写一个简单的函数,比如
51Testing软件测试网*`j?.}.Z7T8L6te} function sum(integer a ,integer b) as integer
51Testing软件测试网 mlBy6@7^6Pz&eq sum=a+b
51Testing软件测试网{*UR&yzY
f end function
51Testing软件测试网^p@6A"ujy%`"uP02.建个sbh,名为Examle(也可以为
其他), 在里面写:
51Testing软件测试网N Of;{vhmr Declare Function sum BasicLib "Examle" (integer a ,integer b) as Integer
qh
b
D
i
_b0z051Testing软件测试网8K [P%}U#@$e5k\h3.新增一个scrīpt, 内容如下:
51Testing软件测试网2{
d&N?:W(t[ '$include "Examle.sbh"
2aGD*bAb051Testing软件测试网I2?E;`!}}$MR^ e sub main()
51Testing软件测试网(Jw u!t5c dim result as integer
51Testing软件测试网0{&~n2YTnb result=sum(1,2)
;nd7]*UG0 msgbox cstr(result) '测试函数是否执行正确
51Testing软件测试网{8gJ#u#yW end sub
收藏
举报
TAG:
软件测试技术
Robot技术