SPONSORS:






User Tag List

Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    May 2001
    Location
    Houston, TX USA
    Posts
    40
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Creating/Opening Files on a remote machine using Silk Test

    I am using Silk Test and using the command line to run scripts on a remote machine. The scripts creates a file and writes info to the file. When I run this script instead creating the file on the remote machine, Silk creates it on the machine where I am running the scripts from. Any recommendations on how to get files on remote machine working.

    ------------------
    SG
    SG

  2. #2
    Member
    Join Date
    May 2001
    Location
    New York, NY, USA
    Posts
    64
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Creating/Opening Files on a remote machine using Silk Test

    You can try mapping a drive to the remote machine and modifying the script - or better yet, adding a parameter to the testcase to accept a drive letter - to write to a particular drive instead of the "C" drive. Just a thought.

    -Zareh

    ------------------
    Amelior Technology
    zarehk@ameliortech.com

  3. #3
    Member
    Join Date
    Jan 2001
    Location
    Westborough, mA, USa
    Posts
    91
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Creating/Opening Files on a remote machine using Silk Test

    U should use the UNC path address to access files on the remote m/c.
    Ex:Sys_FileExists(//MachineName/Drive/FileName)

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

  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: Creating/Opening Files on a remote machine using Silk Test

    Sandeep,

    AFAIK there is no way to use the built in functions of SilkTest to write into a file on a remote machine via the agent without using any tricks like mapping a drive or whatever.

    There is the SYS_GetFileContents function which lets you read from a remote file, but there is NO similar one for writing.

    I've run into this problem several times and solved with with called a kernel32 function. But this is a VERY slow solution and if you need to write several KBytes of data it may take up to several minutes, depending on the machine speed, naturally.
    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 02:24 PM.

Copyright BetaSoft Inc.