Micro Focus QTP (UFT) Forums
Cannot identify Windows (Putty) object in QTP - Error - 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 Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Cannot identify Windows (Putty) object in QTP - Error (/Thread-Cannot-identify-Windows-Putty-object-in-QTP-Error)



Cannot identify Windows (Putty) object in QTP - Error - kharini - 08-28-2010

Hi All,
Its been a week since I started learning QTP.
Here is my doubt
I tried to record the operations done in Putty - (Giving username,password and typing a command in prompt). I was able to record but while running it got stucked with just opening the putty window and not typing anything (Username/pw & the prompt). I did not install any TE AddIns.
It was throwing an error after some time - "cannot identify Windows-Putty object......" error
But when the same thing is tried in my Colleague's qtp it worked. We all installed together without TE ADD Ins.

I do not know why it is not identifying the Putty-Window object in my machine. Please let me know of any solution if you are aware of it.

Any help is highly appreciated

Thanks
Harini


RE: Cannot identify Windows (Putty) object in QTP - Error - balaji4u - 08-30-2010

Hi Harini ,

Are you running the same script in your colleagues machine? or the same scenario with his custom script . If this is the case then check whether all your objects in the scenario are registered in the object repository properly and also trying spying the application to know whether QTP is really capturing the object details correctly. There are several reasons for this error. But first is to make sure the objects are registered properly.

Regards,
Balaji


RE: Cannot identify Windows (Putty) object in QTP - Error - venkatbatchu - 08-30-2010

Hi Kharini,

Try with the below code...
and use Systemutil.Run "C:\putty.exe
Code:
'Establish a  Telnet session
Systemutil.Run "C:\putty.exe"
window("PuTTY Configuration").WinEdit("Host Name (or IP address)").Set ftp_server
window("PuTTY Configuration").WinRadioButton("Telnet").Set
window("PuTTY Configuration").WinButton("Open").Click
'Logon To the server
window("PuTTY").Type login
window("PuTTY").Type vbcrlf
window("PuTTY").Type pwd
window("PuTTY").Type vbcrlf


Regards,
Venkat.Batchu