求大神解答,运行时提示无法识别RepositoriesCollection对象。
qtp吧
全部回复
仅看楼主
level 1
Public Function AddObjectRipository(Objectrepositoryname)
Dim Pos
If instr(Objectrepositoryname,".tsr")>0 Then
RepPath = objectrepositoryname
else
RepPath = objectrepositoryname & ".tsr"
End If
RepositoriesCollection.RemoveAll()
RepositoriesCollection.Add (RepPath)
Pos = RepositoriesCollection.Find (RepPath)
MsgBox Pos
If Pos<>1 Then
MsgBox "找不到副对象库!"
End If
End Function
Call AddObjectRipository("F:\ QTPexperiments\ link.tsr")
[滑稽]求大神告知,怎么运行时老是提示无法识别RepositoriesCollection对象???
2016年11月29日 02点11分 1
level 2
[滑稽]Call function的时候对象名字对么
2016年11月29日 09点11分 2
1