Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP connection to QC
#1
Solved: 10 Years, 9 Months, 1 Week 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, 9 Months, 1 Week 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, 9 Months, 1 Week ago
thanq i got it.
Reply
#4
Solved: 10 Years, 9 Months, 1 Week ago
Does this work 4 U?????
Reply
#5
Solved: 10 Years, 9 Months, 1 Week 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,508 10-05-2016, 02:19 PM
Last Post: Anjali09
  Need help with QTP SQL ADO connection, value retrieved is different charanbc 0 2,667 09-21-2012, 04:27 PM
Last Post: charanbc
  QC-QTP Connection failure uma87 1 3,718 02-28-2012, 03:48 PM
Last Post: inborntester
  SQL Connection String with DSN geethwind 0 5,788 10-05-2011, 05:10 AM
Last Post: geethwind
  Connection to Salesforce Objects nipa1984 0 3,708 09-22-2011, 09:55 AM
Last Post: nipa1984

Forum Jump:


Users browsing this thread: 1 Guest(s)