03-03-2012, 11:42 AM
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.
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