Dheepha
12 years agoContributor
integrating soapui with QC 11 using Scriptom or ActiveX
Hi,
I'm trying to integrate soapui 4.0.0 with QC using groovy script.
I followed the steps provided in below sites to connect to QC by scriptom and Activex.
http://stackoverflow.com/questions/1872 ... ith-soapui
viewtopic.php?f=2&t=22960
But im getting the same error like
"com.jacob.com:ComFailException:Invokeof:InitConnectionEx"
Source:
Description:Invalid Server response
And my sample code looks like below
Scriptom:
import org.codehaus.groovy.scriptom.*
import com.jacob.activeX.ActiveXComponent
import com.jacob.com.*
Scriptom.inApartment
{
def tdc = new ActiveXObject ('TDApiOle80.TDConnection')
tdc.InitConnectionEx('http://servername:port/qcbin/start_a.jsp')
tdc.Login('Loginname', 'pwd')
tdc.Connect('Domain','Project')
}
Activex:
import org.codehaus.groovy.scriptom.*
import com.jacob.activeX.ActiveXComponent
import com.jacob.com.*
def QCUrl = "http://10.8.236.54:8080/qcbin/start_a.jsp"
def QCcom = new ActiveXComponent("TDApiOle80.TDConnection")
def conQC = QCcom.getObject()
Dispatch.call(conQC, 'InitConnectionEx', QCUrl)
Could anyone please let me know what to do next?
Thanks,
Dheepha
I'm trying to integrate soapui 4.0.0 with QC using groovy script.
I followed the steps provided in below sites to connect to QC by scriptom and Activex.
http://stackoverflow.com/questions/1872 ... ith-soapui
viewtopic.php?f=2&t=22960
But im getting the same error like
"com.jacob.com:ComFailException:Invokeof:InitConnectionEx"
Source:
Description:Invalid Server response
And my sample code looks like below
Scriptom:
import org.codehaus.groovy.scriptom.*
import com.jacob.activeX.ActiveXComponent
import com.jacob.com.*
Scriptom.inApartment
{
def tdc = new ActiveXObject ('TDApiOle80.TDConnection')
tdc.InitConnectionEx('http://servername:port/qcbin/start_a.jsp')
tdc.Login('Loginname', 'pwd')
tdc.Connect('Domain','Project')
}
Activex:
import org.codehaus.groovy.scriptom.*
import com.jacob.activeX.ActiveXComponent
import com.jacob.com.*
def QCUrl = "http://10.8.236.54:8080/qcbin/start_a.jsp"
def QCcom = new ActiveXComponent("TDApiOle80.TDConnection")
def conQC = QCcom.getObject()
Dispatch.call(conQC, 'InitConnectionEx', QCUrl)
Could anyone please let me know what to do next?
Thanks,
Dheepha