I am trying to interface with HP Quality Center using Groovy with a Jacob COM wrapper, but I am running into problems.
When I try to run the following code:
import com.jacob.activeX.ActiveXComponent
import com.jacob.com.*
def QCUrl = "http://qc.example.com/qcbin"
def QCcom = new ActiveXComponent("TDApiOle80.TDConnection")
def conQC = QCcom.getObject()
Dispatch.call(conQC, 'InitConnectionEx', QCUrl)
I get this exception:
com/jacob.com.ComFailException: Can't map name to dispid: InitConnectionEx
The HP Quality Center OTA makes it clear that InitConnectionEx
is the method that I am interested in; however, I feel like I am missing a step somewhere. Any help would be greatly appreciated.