SPONSORS:






User Tag List

Results 1 to 7 of 7
  1. #1
    Senior Member
    Join Date
    Jul 2001
    Location
    Ithaca, NY, USA
    Posts
    199
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Remote Agent and Files

    Problem: Writing and reading a textfile on a remote agent. Apparently SilkTest writes these on the controller's harddrive. I tried to avoid this problem by calling a function from the kernel32.dll.
    Basically this solution works nice except for its speed.

    So I would like to know if anyone knows a faster read&write solution. Thanks.

    ------------------
    Don't blame the QA testers!
    Convenience is the first step to enslave yourself. Freedom is inconvenient.

  2. #2
    Senior Member
    Join Date
    Jul 1999
    Location
    Bellingham, WA USA
    Posts
    1,323
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Remote Agent and Files

    Klaus,

    Wait... This sounds just wrong. You should be able to get a handle to a file on a remote machine and open that file for reading, writing, appending... just about anything.

    Can you post a bit more specifically about how this is being done?

    ------------------

  3. #3
    Senior Member
    Join Date
    Aug 1999
    Location
    Cambridge, UK
    Posts
    470
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Remote Agent and Files

    Most of the specific file-orientated functions (e.g. FileOpen, FileWriteLine, FileReadLine, FileReadValue, etc.) do only work on the host machine. You can use SYS_GetFileContents to read from a file on the target machine, but I don't know of any way within silktest of writing to a file on the target machine. In order to get round this problem, I have always made my scripts use files on a fileserver - makes them more portable across machines for one thing.

    ------------------

  4. #4
    Senior Member
    Join Date
    Jul 2001
    Location
    Ithaca, NY, USA
    Posts
    199
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Remote Agent and Files

    Unfortunately these standard functions mentioned by Vince really just work on the host machine.

    SYS_GetFileContents does its job nicely though AND fast, but writing via the kernel32.dll is STILL slow. I could not fine a workaround for this, yet. Though reading is faster now I still hope there might be someone who knows a fast way to write into a via the remote agent.

    The current situation does not allow me to collect the files on a common machine and I am not in the position to change anything about this.

    ------------------
    Don't blame the QA testers!

    [This message has been edited by KlausK (edited 07-12-2001).]
    Convenience is the first step to enslave yourself. Freedom is inconvenient.

  5. #5
    Senior Member
    Join Date
    Jul 1999
    Location
    Bellingham, WA USA
    Posts
    1,323
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Remote Agent and Files

    Klaus,

    My appologies. I knew I had a test that was writing to a file from about two years ago, and it was doing it on a remote machine... Solaris even. However, what I didn't recall was that it was a test exercising file writing functionality within the AUT rather than Silk actually writing to the file.

    Sorry...



    ------------------

  6. #6
    Member
    Join Date
    Nov 2000
    Location
    Dublin, Ireland
    Posts
    47
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Remote Agent and Files

    I know this is not the most glamorous solution but I shared out the drive and then read/wrote to the drive from the host machine. I used this to modify batch files on the remote machine the I could use SYS_Execute to run the file.

    ------------------

  7. #7
    Senior Member
    Join Date
    Jul 2001
    Location
    Ithaca, NY, USA
    Posts
    199
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Remote Agent and Files

    Thanks for the info here in this thread. I guess my workaround has to be it for now. Hehe, who knows? Maybe they will fix this in the next version.

    ------------------
    Don't blame the QA testers!
    Convenience is the first step to enslave yourself. Freedom is inconvenient.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin 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 08:57 PM.

Copyright BetaSoft Inc.