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


Messages In This Thread
Connect to QC - by ravi.gajul - 02-14-2012, 04:07 PM
RE: Connect to QC - by basanth27 - 02-15-2012, 05:54 PM
RE: Connect to QC - by ravi.gajul - 02-16-2012, 12:38 AM

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,722 06-14-2012, 09:14 PM
Last Post: Ankesh
  How to connect DBVisualizer with QTP? venkatbatchu 0 3,379 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,815 06-27-2008, 12:18 AM
Last Post: idolast

Forum Jump:


Users browsing this thread: 2 Guest(s)