Micro Focus QTP (UFT) Forums
what object required - 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: what object required (/Thread-what-object-required)



what object required - kirangoud - 03-03-2012

Hi 2 every one,

when i was saving qtp script in qc through scripting , i succeded in saving script. But it is displaying error msg as "Object Required".
Could any one help me what object required and solution for that.


Code:
set qtplch=createobject("Quicktest.application")
qtplch.launch
qtplch.visible=true
on error resume next
qtplch.TDConnection.connect “http://QualityCenterServer/tdbin”,
“FR”, “Flights”, “learnqtp”, “welcome”, False
if TDConnection.IsConnected then
qtplch.open "D:\QTPkiran\Test",true
qtplch.Test.SaveAs"[QualityCenter] Subject\QTPQTPscript"
msgbox(err.description)
else
msgbox(err.description)
end if



RE: what object required - Sathiya - 03-05-2012

Hi,
check whether following is working or not...

if qtplch.TDConnection.IsConnected then