Quality Center OTA API provides interfaces such as ISupportCopyPaste (copy / paste data using the clipboard). The documented way to get a link to an implemented interface:
'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
The above code is in VB (which I don't want to use).However, QTP does not allow "As" in the Dim statement.Can anyone tell me how to get the link using QTP?Any other solution to this problem? for example: using Python Win32
, QTP " As Dim", , QTP VBScript VB, As - VB (VBScript ).
As
Dim
OTA QTP, QCUtil, QTP (. QTP ).
QCUtil
QCUtil , , , COM, OTA ( , , VB, VBScript, ++ .NET, Python).
VBScript, OTA VBScript CreateObject ( CreateObject OTA ).
CreateObject
OTA , , IDispatch.
; vbscript ISupportCopyPaste. , ISupportCopyPaste, .
Source: https://habr.com/ru/post/1786853/More articles:checkbox status checked by default - phpМожно ли подключить обработчик к событию скольжения? - jqueryProblem in Visual Studio 2010, changing resources sets the constructor to internal - c #Using Apache Commons Net API - javaandroid spinner shows hidden notification bar - androidIs it advisable to use Reachability to check the availability of a remote host? - iphoneLucene How to build a term-doc matrix - matrixNot quite sure if% s is in Python, help? - pythonUser Controls Library for ios SDK - iosExternal and external end of MVC.Net - asp.netAll Articles