不要追求绝对的公平,红尘之中没有公平而言,人活一世,难得糊涂。
it is no use doing what you like, you have got to like what you do.
GUI计时设置
上一篇 /
下一篇 2007-01-15 17:40:41
/ 个人分类:Robot技术
ROBOT中提供的 StartTimer "time"51Testing软件测试网K6FW6\P}Xk命令不能直接输出啊,只能在日志里看51Testing软件测试网9X(Lu;@H0i_g
51Testing软件测试网.I0GtW;}-V LY
如果我们想在CONSOLE中看的话:51Testing软件测试网?`3B }2v'D,AB.F
:d
eY%Pr4T%N&Oj zN l(Y;q0Sub Main
q'{ su?K0
yc~m5c0Dim Start_time
51Testing软件测试网 GZ'LO
`Dim End_time
8o5Vw&}:U5? } [0Dim Total_time
51Testing软件测试网)K:n&dg!Pr_51Testing软件测试网g?sB)DS1I,bStart_time = time
ksNkk/eR o,q051Testing软件测试网dVrL$k5WYI/d'执行的语句
51Testing软件测试网B-~3z}2NU3Z)o6K{e8i?N f#y(Xx'a/s-w0End_time =time
51Testing软件测试网gA0?
MY
i8z;iTotal_time = End_time - Start_time
51Testing软件测试网A&P8[R
i
M?ML2b^+r9J%A0SQAConsoleWrite("
脚本运行用时共:"&Total_time)
51Testing软件测试网$}Q7AQ!Q
D51Testing软件测试网;bKV%m6c|Z]wEnd Sub
51Testing软件测试网;o:j5pl H"U(p#i6^d51Testing软件测试网8Yq1W,R0o这个只可以精确到秒!!!!
51Testing软件测试网 X"iA}t5dL`.i%~['D%d"\eLa0那就只能调用API函数拉。Robot可以调用系统函数
NL:wcfd~*YJ%sV0Type SYSTEMTIME
51Testing软件测试网5M2U lF.\ wYear As Integer
51Testing软件测试网~ CI#J[}] wMonth As Integer
P:_gQ'hOhk3w0 wDayOfWeek As Integer
h}zNp@0 wDay As Integer
2y-NB2V+tBb0 wHour As Integer
lOOEL7{(Ys0 wMinute As Integer
51Testing软件测试网'}@w-mm,m*x/I wSecond As Integer
@x/A%U7y5v`hK
{0 wMilliseconds As Integer
"d
KW!|hu0End Type
_C!E@Qj00nz9QZRB0Declare Sub GetLocalTime Lib "kernel32" (lpSystemTime As SYSTEMTIME)
G0]8|yuOIR0Declare function GetDay() as string
)r&z3fhB(OS0'系统的日期信息,精确到毫秒
51Testing软件测试网b,U-m q"B7l#PE7Nkfunction GetDay() as string
51Testing软件测试网 JV0Qz6VK)IW7M)z3JL@_/C0dim systime as systemtime
w+X'ND3zQ
|0GetLocalTime systime
51Testing软件测试网I6v tT*`efAGetDay=cstr(systime.wYear) + "-" + cstr(systime.wMonth) + "-" +
cstr(systime.wDay)+"
"+cstr(systime.wHour)+":"+cstr(systime.wMinute)+":"+cstr(systime.wSecond)+":"+cstr(systime.wMilliseconds)
h cP2fA9P3E#_0end function
$@'@ w+G)h.v;g{y;YQ051Testing软件测试网q^Pk@1f,D6~$A,ZSo51Testing软件测试网WLmA4Q!O&_l!N
相关阅读:
- SQAConsoleWrite/clear函数解释 (Spark.lee, 2007-2-05)
- SQALogMessage (Spark.lee, 2007-2-05)
- GUI登陆程序 (Spark.lee, 2007-2-10)
- Robot 的自动化功能测试框架 (Spark.lee, 2007-1-09)
- 对比使用 Robot 和Functional Tester (Spark.lee, 2007-1-09)
- 关于验证点(VP) (Spark.lee, 2007-1-09)
- SQAGetProperty应用实例 (Spark.lee, 2007-2-10)
- 测试CQ 登陆 (Spark.lee, 2007-2-10)
- Robot中的文件操作的总结 (Spark.lee, 2007-1-15)
- Robot 批任务定时回放启动 (Spark.lee, 2007-1-15)
收藏
举报
TAG:
Robot技术