Results 1 to 6 of 6

Thread: Executing files

  1. #1

    Executing files

    How to execute file n silk test? Explain with script....


  2. #2

    Re: Executing files

    To execute an exe the code should be like this

    [-] window MainWin DummyWindow

    [ ] const sDir = "C:\"
    [ ] const sCmdLine = "C:\setup.exe"

    [-] Execute()
    [-] if (!DummyWindow.Exists(5))
    [ ] DummyWindow.Start(sCmdLine,sDir,null,0)


  3. #3

    Re: Executing files

    Thanks for reply,

  4. #4

    Re: Executing files

    Hi Priyal,
    But I dont need to execute exe file, I want to to execute another script file from one script file


  5. #5

    Re: Executing files

    Maybe it would help us answer you if you explained the situation why you would want a script" to execute another script. There are probably easier ways to do it.

    You can have a single .t script that has multiple testcase(s) in it. Then you can put a 'main()' function in the .t script and have calls to each of the testcases in it.

    Or maybe you should break your scripts up into functions or methods and call them that way from your testcases.

    Either way, hope it helps.

  6. #6



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
BetaSoft Inc.
All times are GMT -8. The time now is 05:30 PM.

Copyright BetaSoft Inc.