SPONSORS:






User Tag List

Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Mar 2000
    Location
    Waltham, MA, USA
    Posts
    27
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Running batch file from SilkTest

    How can I run a batch file from silk. I try to use SYS_Execute and it says that it should return a value. My batch file sets a path and runs a java class. How can I make it to return a value.

  2. #2
    Member
    Join Date
    Jun 2000
    Posts
    50
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Running batch file from SilkTest

    Your batch file should return a value of 0 upon success. You must be doing something wrong in your 4Test code. Perhaps you are not declaring an integer where the return value is to be stored.

    Try something like this:

    testcase External2() appstate none
    integer returnvalue
    list of string test
    returnvalue = SYS_Execute("C:\testbat.bat", test)
    Print (returnvalue)
    Print (test)

    The results file will indicate the successful completion of the batch file with a 0 and will also print any text sent to the standard output stream.

    Hope this helps,
    Nir Gilboa.
    assetplanner.com

 

 

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:23 PM.

Copyright BetaSoft Inc.