10-22-2008, 03:03 PM
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:
Note:After executing this code again changed back the settings for executing the other steps in the scenario.
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.