Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP with Putty 0.60
#1
Solved: 11 Years, 4 Months, 3 Weeks ago
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
Reply
#2
Solved: 11 Years, 4 Months, 3 Weeks ago
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  System Reboots when Terminal emulator is configured for QTP 11 to automate putty mahesh 3 6,917 02-08-2013, 11:10 PM
Last Post: coolguy
Rolleyes QTP typing incorrect Text on PuTTY Window ShrikantBiradar3449 0 2,563 08-24-2012, 10:05 AM
Last Post: ShrikantBiradar3449
Big Grin QTP & Putty aditi 1 6,592 09-03-2009, 11:28 AM
Last Post: basanth27
  Putty automation with QTP9.5 Issues rjobs 2 6,342 09-23-2008, 06:01 AM
Last Post: rjobs

Forum Jump:


Users browsing this thread: 1 Guest(s)