SPONSORS:






User Tag List

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

    Reading values from remote system environment

    Scenario:

    We are connecting to MachineB from MachineA and driving the machine from there. Part of running this test suite involves pulling variable values from an ini file on the c: drive of the target machine, MachineB. To do this, we are using SYS_GetEnv() to get the value CoreIniPath.

    This works.

    However, when the Value comes back to MachineA as "c:\ini" and the script attempts to pull values from the ini file, it interprets that "c:" as the c: drive on the Host machine rather than the Target machine. The values should be pulled from the c:\ini folder on B but are being pulled from the c:\ini folder on A.

    Solution:
    We have modified the Environment variable in each machine so that it reads CoreIniPath=//QATestArea03/c/ini

    instead of

    CoreIniPath=c:\ini

    So, it is working for us, but the question still remains, why can't the agent interpret this c: as it's local drive rather than the c: drive on the Host machine?



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

  2. #2
    Senior Member
    Join Date
    Nov 1999
    Location
    Eagle, ID,USA
    Posts
    1,035
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Reading values from remote system environment

    IniFileGetValue is executed by the SilkTest process and not the agent process. I believe 5.5 sp2 has the ability to read files ini files via the agent process using SYS_IniFileGetValue but the catch there is you have to install SP2.

    I have written a function to retrieve ini file values on a remote machine if you would like it, let me know and i'll post it.

    ------------------
    Have you ever noticed? Anybody going slower than you is an idiot, and anyone going faster than you is a maniac.

  3. #3
    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: Reading values from remote system environment

    Tony,

    Yep. Just read through the docs on this and you're absolutely correct. However, SYS_IniFileGetValue is coming back with an empty string. Looks like yet another SP2 defect. Bummer.

    The good news is, our original solution still works. It's a little hokey but it works. Based on your feedback, we know what needs to change once the SP2 defects are worked out.

    Thanks.

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

 

 

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 10:45 PM.

Copyright BetaSoft Inc.