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 を使用