Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP connection to QC
#1
Solved: 10 Years, 8 Months, 3 Weeks ago
[/i]Hi,
good morning,

when i am connecting qtp to qc through scripting code written below .when am running the script it is opening qtp but it is giving error msg "connection is not available"

plz any one help .

Code:
set qtplch=createobject("Quicktest.application")
qtplch.launch
qtplch.visible=true
on error resume next
qtplch.TDConnection.connect"http://193.178.1.200/qcbin","CERNATECH","EDUTRACKER","kiran.goud","kiran123",true
msgbox(err.description)
Reply
#2
Solved: 10 Years, 8 Months, 3 Weeks ago
Hi,
Could you please use this:

Code:
Set qtApp = CreateObject("QuickTest.Application") ' Create the Application object
qtApp.Launch ' Start QuickTest
qtApp.Visible = True ' Make the QuickTest application visible
If not qtApp.TDConnection.IsConnected Then
   qtApp.TDConnection.Connect"QC-Link","domain","project","login","password",False
End If

Regards,
Sankalp
Reply
#3
Solved: 10 Years, 8 Months, 3 Weeks ago
thanq i got it.
Reply
#4
Solved: 10 Years, 8 Months, 3 Weeks ago
Does this work 4 U?????
Reply
#5
Solved: 10 Years, 8 Months, 3 Weeks ago
yes, am learning Qtp and Qc integration.
thanq
sankalp
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question JDBC connection for UFT Anjali09 0 3,493 10-05-2016, 02:19 PM
Last Post: Anjali09
  Need help with QTP SQL ADO connection, value retrieved is different charanbc 0 2,661 09-21-2012, 04:27 PM
Last Post: charanbc
  QC-QTP Connection failure uma87 1 3,705 02-28-2012, 03:48 PM
Last Post: inborntester
  SQL Connection String with DSN geethwind 0 5,784 10-05-2011, 05:10 AM
Last Post: geethwind
  Connection to Salesforce Objects nipa1984 0 3,702 09-22-2011, 09:55 AM
Last Post: nipa1984

Forum Jump:


Users browsing this thread: 1 Guest(s)