Micro Focus QTP (UFT) Forums

Full Version: QTP with Putty 0.60
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

We were using FTP and Telnet previously to update the records in SAP. Now we are using FTP and PUTTY. We were using a vbs function previously the same is not working for PUTTY. Now I tried to record it with QTP. But it is not recognizing the screen. So I used the following commands in the script:

Code:
SystemUtil.Run "putty.exe","-load ""M&M T2""","H:\",""
Window("PuTTY").Activate
Window("PuTTY").Type "Forever!"
Window("PuTTY").type micreturn
Window("PuTTY").type "exit"
Window("PuTTY").type micreturn
Window("PuTTY").close

It is just showing the screen for inputting the password.
But it is not identifying the object window.

Could anybody please suggest how to code for this.

If you have solution you can even mail me to sudha_abap@sify.com


Thaks and regards,
Sudhakara Reddy.A
Putty Solution:---
After I made the following settings in QTP and used the folowing code it is working well:
1. Go to Test -> Record and Run Settings.
2. Select the Windows Applications tab.
3. Select the "Record and run test on any open Windows-based application" option.
Then used the following code:
Code:
SystemUtil.Run "putty","","H:\",""
Window("PuTTY Configuration").WinList("Saved Sessions").Select "M&M T2"
Window("PuTTY Configuration").WinButton("Load").Click
Window("PuTTY Configuration").WinButton("Open").Click
Window("PuTTY").Type  micShiftDwn  + "F" +  micShiftUp
Window("PuTTY").Type "orever" +  micShiftDwn  + "!" +  micShiftUp
Window("PuTTY").Type  micReturn
'Window("PuTTY").Move 424,33
Window("PuTTY").Type "exit"
Window("PuTTY").Type  micReturn


Note:After executing this code again changed back the settings for executing the other steps in the scenario.