【发布时间】:2011-01-30 05:36:17
【问题描述】:
Quality Center OTA API 提供 ISupportCopyPaste(使用剪贴板复制/粘贴数据)等接口。获取对已实现接口的引用的记录方法是:
'Declare a variable to hold the reference for the interface
Dim bf As IBaseFactory2
' By assigning the implementing object reference to the
' IBaseFactory2 type variable, the type is cast to that of the
' implemented interface. The new variable is a reference to the
' IBaseFactory2 interface within the parent object.
' tdc is the global TDConnection object.
Set bf = tdc.BugFactory
上面的代码是用VB写的(我不想用)。
但是,QTP 不允许在 Dim 语句中使用“As”。
谁能告诉如何使用 QTP 获得参考?
这个问题的任何其他解决方案?例如:使用 Python Win32
【问题讨论】:
标签: python api vbscript qtp hp-quality-center