SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 8 of 8
  1. #1
    Junior Member
    Join Date
    Sep 2006
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    WebTcpipSendFile

    Hi
    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);
    WebTcpipSendFile(hWeb, "C:\\ArquivoTeste.txt");
    WebTcpipShutdown(hWeb);

    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.
    Best regards!

  2. #2
    Moderator
    Join Date
    Sep 2001
    Location
    Boston, MA
    Posts
    4,348
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: WebTcpipSendFile

    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.
    Corey Goldberg
    Homepage: goldb.org
    Twitter: twitter.com/cgoldberg
    Google+: gplus.to/cgoldberg

  3. #3
    Junior Member
    Join Date
    Sep 2006
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: WebTcpipSendFile

    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:
    <font color="green">-----------------------------------------------------------

    benchmark WebBenchmarkName
    use "WebAPI.bdh"
    // Definition of global variables
    var
    hWeb : number;
    hListen : number;
    hTcpip : number;
    nRecv : number;
    sData : string;

    // Workload Section
    dcluser
    user
    WebUser
    transactions
    TConecta : begin;
    TEnviaArq : 1;
    TRecebe : 1;
    TEncerra : end;

    // Web Transactions Section
    dcltrans

    transaction TConecta
    begin
    WebTcpipConnect(hWeb, "192.168.1.67", 19200);
    end TConecta;

    transaction TEnviaArq
    begin
    WebTcpipSendFile(hWeb, "C:\\ArquivoTeste2.txt");
    end TEnviaArq;

    transaction TRecebe
    begin

    WebTcpipListen(hListen,88);
    WebTcpipAccept(hListen,hTcpip);
    WebTcpipRecv(hTcpip, sData, 9999, nRecv)

    end TRecebe;

    transaction TEncerra
    begin
    WebTcpipShutdown(hWeb);
    WebTcpipShutdown(hListen);
    end TEncerra;
    ------------------------------------------------------------</font>

    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]

  4. #4
    Moderator
    Join Date
    Sep 2001
    Location
    Boston, MA
    Posts
    4,348
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: WebTcpipSendFile

    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.
    Corey Goldberg
    Homepage: goldb.org
    Twitter: twitter.com/cgoldberg
    Google+: gplus.to/cgoldberg

  5. #5
    Junior Member
    Join Date
    Sep 2006
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: WebTcpipSendFile

    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.

    Best regards.

  6. #6
    Moderator
    Join Date
    Sep 2001
    Location
    Boston, MA
    Posts
    4,348
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: WebTcpipSendFile

    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.

    -Corey
    Corey Goldberg
    Homepage: goldb.org
    Twitter: twitter.com/cgoldberg
    Google+: gplus.to/cgoldberg

  7. #7
    Junior Member
    Join Date
    Sep 2006
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: WebTcpipSendFile

    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!

  8. #8
    Junior Member
    Join Date
    Sep 2006
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: WebTcpipSendFile

    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?

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 12.50%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 11:14 AM.

Copyright BetaSoft Inc.