Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Connect to QC
#1
Not Solved
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")
Reply
#2
Not Solved
which version of QTP help?
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply
#3
Not Solved
version 10.0
Reply
#4
Not Solved
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Not able to connect to Oracle SQL Developer Paras Singh 0 6,770 05-30-2013, 01:25 PM
Last Post: Paras Singh
  QTP API to connect to Performance Center(ALM) as_srini 3 5,727 06-14-2012, 09:14 PM
Last Post: Ankesh
  How to connect DBVisualizer with QTP? venkatbatchu 0 3,381 01-28-2011, 12:19 PM
Last Post: venkatbatchu
  Error when Tying to connect to Oracle DB wheelercha 4 4,726 03-28-2010, 05:55 PM
Last Post: Jackomcnabb
  connect oracle to QTP sherinvg 8 17,816 06-27-2008, 12:18 AM
Last Post: idolast

Forum Jump:


Users browsing this thread: 2 Guest(s)