How to record Putty Commands

190 views
Skip to first unread message

Mahesh

unread,
Sep 22, 2014, 7:01:23 AM9/22/14
to LR-Loa...@googlegroups.com
Hi Frns,

I want to record putty session on loadrunner, steps will be like this.
I will login to Putty , goto current directory, copy some files and transfer the same to other directory.

I tried using WinSock protocol but not able to identify parameters and correleation values.
Please help me with useful links or docs to learn about more on winsock protocol.

Regards
Mahesh

James Pulley

unread,
Sep 22, 2014, 9:14:09 AM9/22/14
to LR-Loa...@googlegroups.com
RTE

Mahesh

unread,
Sep 23, 2014, 2:14:48 AM9/23/14
to LR-Loa...@googlegroups.com
Thnks James,

Can we get the time taken by the service task on server machine by using RTE protocol?

My Requirement is as below,

I will copy a batch of files from one server to another server , 
This copying process will run on another interface server.
I want to get the time taken by Interface Server to copy files from Server A to Server B.

Regards
Mahesh

Bhavin Patel

unread,
Sep 23, 2014, 9:20:52 AM9/23/14
to LR-Loa...@googlegroups.com
You can also use file transfer protocol but I am not sure it will support SSH.

You can connect your unix environment with winscp  via cmd
for example:
1. go to directory where winscp located in cmd
2. type this command
winscp.exe sftp://user:pwd@host:port
3. now you are in secure sell environment from your cmd
4. you can transfer files back and forth.

Once you do this manually, it becomes easy to convert into a script via simple C functions like system, popen, chdir .

http://winscp.net/eng/docs/commandline
Note: There may be some security constrain but talk to system admin or developer about your approach.




On Monday, September 22, 2014 7:01:23 AM UTC-4, Mahesh wrote:

James Pulley

unread,
Sep 23, 2014, 9:46:45 AM9/23/14
to LR-Loa...@googlegroups.com
http://www.libssh2.org/examples/scp.html
...

One you have decided upon your path, then you just insert the appropriate transaction markers around the transmission.  If you take the path of the system() command then you will not get timing data inside of LoadRunner and you may have to pull information from logs on the destination host.   Keep in mind that you will need to carefully watch the network interface of your load generator, particularly if you are doing large concurrent file transfers as this is quite different on the behavioral use of the interface from large numbers of users who are downloading small files (html, .js, .css, image, ...) as you wont have any inter-stream gaps during which other users/processes can naturally use the interface.  In this case you may have ten or more users all streaming their upload at once and competing for the same interface, which would be very different than an end user.    This may call for larger number of load generators to avoid a drag on the network interface which colors the result set.   Control factors of single users on load generators are going to be essential as a cross check against test design imposed delays.

This solution will involve the foundation skill of 'C' programming.

James Pulley
http://www.litesquare.com - A new bargain in Performance Engineering.  You pay only when you derive a measurable benefit
http://www.perfbytes.com - The podcast for performance testing and engineering
http://www.loadrunnerbythehour.com - Onshore, effective LoadRunner services beginning at 19.95 per hour USD

Mahesh

unread,
Sep 24, 2014, 8:46:56 AM9/24/14
to LR-Loa...@googlegroups.com
Thanks James, It's working on RTE.

Regards
Mahesh
Reply all
Reply to author
Forward
0 new messages