在使用qtp过程中,易遇到的问题
上一篇 /
下一篇 2009-02-25 17:31:34
/ 个人分类:qtp
O(|1OQ5l"r4ck01. show error:"Thistestdoes not contain any reusable actions"51Testing软件测试网S)uy,]rD T^
^6j@1UC0你想把在test1中插入test2,用call to existing action的话,就要把test2设置为reusable actions
9N%|dV.Z3v@$[0方法就是用QTP打开test2,然后点test2 action 右键选择 action properties,在弹出来的窗口下面有个
g!Yj;j*i0reusable actions选项,将他打勾就,然后点确定,弹出提示不用管,点OK就可以了.51Testing软件测试网+H\y'Br9kZ"U` O~
下来就可以从test1中将入test2了!试试吧51Testing软件测试网
N/n!b[7SMM
Y$d.](w?2P2YA']]02. invote funtion: such as add funtion51Testing软件测试网5\ @f
d
|
51Testing软件测试网-Yn4Z
qv2KpU%^addd(2,3)
@#c+K*v,j)u0_0HNQ_:A$VM8G;W0funtion add(no1,no2)51Testing软件测试网,[~3QNy[0s*|2^
dim no351Testing软件测试网(a0mKA4A
no3 = no1 + no2
Bt\-^p%[:\2Z0Y*MLR5gw6V03. how to add library to action51Testing软件测试网2D]U(l(b'T_%Ip|B2H
file menu ->setting -> resource.
4V#tjr^7^wve7p)]E051Testing软件测试网1tA1A3~8i|4, When you move to the action to another area, pls follow the following ways:
5V;PPM[G}#o_9B01. add the origin Object repository
e7K1DF%e02. add funtion library below file menu ->setting -> resource.