I'm trying to send an archive (from/to host 192.168.1.40) using WebTcpipSendFile function like the script above:
WebTcpipConnect(hWeb, "192.168.1.40", WEB_PORT_HTTPS);
First doubt: why the 'try script' doesn't work when i try to send an archive of 1Mb?(when i've tryed with an acrchive of 4Kb that works... ) The 'try script' has returned the following errors:
WinSock: 10054 - Connection reset by peer
WinSock: 10057 - Socket is not connected
Second doubt: If it works, where the archive is received? In which directory? It's possible to define where(wich directory) the archive will be received?
Thank you for your atention.
do you have something on the other end of the socket that will receive the data?
all you are doing there is reading binary data from a file and sending it over a socket connection.
On the other end of the connection, something needs to read the incoming data and write it to the file system.
That mean that i have to put 'WebTcpipListen',''WebTcpipAccept,'WebTcpipRecv' in my script? (will it work because i'm sending and receiving from the same machine?)
And if the machines that will receive and send the data being diferents, i will have to run a program on the "receiving machine" that listen to the socket?
Can you give me an example of a script that sends data from one machine to another diferent machine?
I am trying to, but it is being realy hard... take a look the way that i am trying:
// Definition of global variables
hWeb : number;
hListen : number;
hTcpip : number;
nRecv : number;
sData : string;
// Workload Section
TConecta : begin;
TEnviaArq : 1;
TRecebe : 1;
TEncerra : end;
// Web Transactions Section
WebTcpipConnect(hWeb, "192.168.1.67", 19200);
WebTcpipRecv(hTcpip, sData, 9999, nRecv)
And what about my doubts... about size of sending data, and the directory that receives the data? Can you give me a hand?
Thank you for your help Corey_G! [img]/images/graemlins/wink.gif[/img]
I really can't help without knowing what you are trying to do.
why do you want a load test that just sends and receives data to/from itself through sockets?
If you explain what you are trying to do (and why), perhaps someone can help.
I need to stress the file server of a machine... for this, i will apply a strategy (copying, moving, etc the files on a machine)that i have not defined yet, using the script i have pasted in the last post.
But to do this, i need to do the script work for 1 archive at first, so then i will define the next step that is 'the stratgey' for the test.
Just sending and receiving an archive with a script helps me so much, at first!
Thank you very much for the help Corey_G.
hmm.. you want to test a file server locally? (moving files around on the server itself? rather than sending/receiving files to/from the server?). If so, SilkPerformer is completely the wrong tool for the job.
Either that or I have misunderstood your question and description.. either way, I don't have anything to offer based on what you have provided so far.
Thank you so much for the time you have spent answering me!
I will research for a tool more appropriated for my issue.
If I discover a tool for that, i will reply here the solution!
See you around here [img]/images/graemlins/wink.gif[/img] and one more time, thank you!
I was visiting your blog... do you develop testing tools?
Really cool man!
I was thinking about my problem... i can stress a file server with some ".BAT" files that move/copy/delete the files in the server, and monitor this with any other tool (ther are many tools for monitoring...) It's not so elegant, but will work. What do you think about it?