51Testing软件测试网:YG{7ouQTP的基本使用函数:
fa
kZM;W-|-O051Testing软件测试网TZ)e:@-m1D)X9Sf1,获取对话框相应的文字:GetVisibleText
x9Wg$zn^C-v051Testing软件测试网4s ~gi9|9^l\P2,查找相应的字符串:instr(1,查找目标字符串,所查找的字符串)51Testing软件测试网5Jw+_5H/QT:y]
7S a,`)o| sM03,随机数的获取:Randomnumber.Value()或cstr(int(Rnd*10) 1)51Testing软件测试网R _p.wCrG+b
51Testing软件测试网1gj
jeR+k9R)zt.m#h%E4,等待函数:Wait(秒数)
:Q8Xt$yBb:s0
K9qO-Up2D05,获取数组下标:UBound(数组名)51Testing软件测试网}X `3j^
51Testing软件测试网9KGd2t$yh!i9P6,拆分数组:Split(MyString,",",-1,1)51Testing软件测试网nib}~;}7c#?] k
51Testing软件测试网@@iE2whm|7,可执行步骤:OptionalStep51Testing软件测试网+suk)aeN a
d1}%_'U.@@
G08,报告信息:Reporter.ReportEvent3,"SaveStep","Outofcycle!"51Testing软件测试网XN}I'vF
y6^6Gj~#_%}Dg09,判断对话框是否存在:.exist51Testing软件测试网P|t*~dzRE
51Testing软件测试网"y_E9P&b10,事件过滤函数:Reporter.Filter=过滤条件(0,1,2,3),0代表显示所有的error和warning,1,显示error,2,显示waining,3,任何error和warning都不显示。
%_[x }!jpNj0scg#P){011,循环函数:do…loopuntil,for…to…thennext,while.
Z#UJ4~I!dhfd4x0]9h`;X Y012,数据表格:DataTable,向外赋值,Dimaa=DataTable.value(“CellingName”,”ActionName”).51Testing软件测试网Jg
H;UE
51Testing软件测试网llT8NES2_1H13,获得对象属性的三种方法GetTOProperty,GetTOProperties,GetROProperty,GetTOProperty获得程序中对象当前的属性,GetTOProperties获得当前属性所有集合,GetROProperty获得的是录制时对象所获得的属性。
:F?1ekx~.r-c051Testing软件测试网Q[R4q{w14,检查点方法check和输出指定属性值output。
MLX}Y08GY
IcG
L ]+P#J015,函数Descrīption,可以获得某页面同标签的属性进行操作。51Testing软件测试网'I]$~4F$n6I
d@%H`Y|X~C016,函数nagative可以随便跳转页面到指定的URL。
ag6N:I Jm{0%dP\ M]017,函数Object可以获得当前页面同属性的控件。51Testing软件测试网1]Y&rv8~cx m1z
'nqTU5cF018,函数Focus可以让控件获得焦点,函数Blur则是失去焦点,click单击,dbclick双击。51Testing软件测试网nXb@1[
51Testing软件测试网2g
y/[`/Ek%pe19,函数setAttribute可以设置控件属性,getAttribute可以获得属性。51Testing软件测试网tftu-}fXK`D