Micro Focus QTP (UFT) Forums
QTP connection 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: QTP connection to QC (/Thread-QTP-connection-to-QC)



QTP connection to QC - kirangoud - 03-02-2012

[/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)



RE: QTP connection to QC - sshukla12 - 03-02-2012

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


RE: QTP connection to QC - kirangoud - 03-02-2012

thanq i got it.


RE: QTP connection to QC - sshukla12 - 03-02-2012

Does this work 4 U?????


RE: QTP connection to QC - kirangoud - 03-02-2012

yes, am learning Qtp and Qc integration.
thanq
sankalp