Micro Focus QTP (UFT) Forums
Connect to QC - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: Connect to QC (/Thread-Connect-to-QC)



Connect to QC - ravi.gajul - 02-14-2012

Code:
Set TDConnection = CreateObject("TDApiOle80.TDConnection")

TDConnection.InitConnection "http://qc........../qcbin" ' URL for the DB
TDConnection.Login "<learnqtp>","<learnqtp>"
TDConnection.Connect "<mydomain>","<myproject>" ' Valid login information

If TDConnection.Connected Then
  MsgBox("Connected to " + chr (13) + "Server " + TDConnection.ServerName  + chr (13) +"Project " + TDConnection.ProjectName )
Else
  MsgBox("Not Connected")
End If
The first line as per qtp help file (code sample) is
Set TDConnection = CreateObject("TDApiOle.TDConnection")
throws an error "cannot create activex component TDAPiOle.TDConnection" Please note the correction
Set TDConnection = CreateObject("TDApiOle80.TDConnection")



RE: Connect to QC - basanth27 - 02-15-2012

which version of QTP help?


RE: Connect to QC - ravi.gajul - 02-16-2012

version 10.0


How to Insert result in Excel sheet? - SrinuKodi - 09-18-2012

Hi There,

Can anyone plz help me out in below issue.......

i'm retreiving 2 address values from mainframe DB screen i.e sender address and receipient address.......i want to put those results in excel sheet containing "Sender address" as 1st column name and "Receipient address" as 2nd column name.I'm using below code for this.

Code:
DataTable("Billto_Address", Input_Data)=Billto_Address
DataTable("Shipper_Address", Input_Data)=Shipper_Address

Could any1 plz help me in this,appreciate ur help.