SPONSORS:






User Tag List

Page 1 of 3 123 LastLast
Results 1 to 10 of 27

Thread: Running an exe

  1. #1
    Junior Member
    Join Date
    Mar 2003
    Location
    bangalore
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Running an exe

    Does anyone know how to execute an exe file from SilkTest *.t script?
    Using SYS_Execute doesnt seem to return the control back to the next line of code, so SYS_Execute just launches the exe and stops the Silktest script playback.

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

    Re: Running an exe

    You could try putting it in a .bat file and calling the .bat file from silktest?

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

  3. #3
    Senior Member
    Join Date
    Nov 2001
    Location
    UK, Oxford
    Posts
    150
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Running an exe

    A bit of a hack:
    Get ST to record your actions when typing into the run dialog (Start -> Run).
    Create a function using the recording which takes a string.
    Call that function from your script with the name of whatever *.exe you wish.
    This could be refined...

    ------------------
    Tempus fugit, Carpe Diem, et al

  4. #4
    Guest

    Re: Running an exe

    You can use...

    SYS_Execute ("start vb.exe")

    This would invoke the app as separate process and gets the control back to the script immediately.

  5. #5
    Super Member
    Join Date
    Jul 2001
    Location
    Earth
    Posts
    1,882
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Running an exe

    Or you can declare the application and use the Start method:
    ------------------
    James Soderborg
    http://www.ameliortech.com
    jamesso@ameliortech.com

  6. #6
    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: Running an exe

    Use the ShellProcess() method in this dll.

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

  7. #7
    Senior Member
    Join Date
    Apr 2001
    Location
    San Diego,CA,USA
    Posts
    108
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Running an exe

    or you can use the attached exe its a light weight (16 KB ) exe which starts the process in a different thread.

    usage is as follows:

    exec name_of_executable args

    in silk
    SYS_Execute("exec name_of_executable args
    ")


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

    start exename will work for mdi application but not for others such as calc or notepad may not work


    [This message has been edited by AUTOMATION_GURU (edited 03-17-2003).]

    [This message has been edited by AUTOMATION_GURU (edited 03-17-2003).]

  8. #8
    Senior Member
    Join Date
    Jun 2000
    Location
    Hartford, CT, USA
    Posts
    163
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Running an exe

    DJ, Can U elaborate how to use your DLL?

    For that matter if U can tell how to create and use DLLs with Silk...



    ------------------
    Jaimini Bhatt
    jaiminita@hotmail.com
    jaiminita@yahoo.com
    Jaimini Bhatt

  9. #9
    Senior Member
    Join Date
    Dec 2001
    Location
    Bozeman, MT, USA
    Posts
    265
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Running an exe

    jaimin look up "dll declaration" in the silktest help.

    ------------------
    Ryan McCullough
    Accelrys Inc.
    ryan@accelrys.com

    [This message has been edited by rmccullough (edited 03-21-2003).]
    Ryan McCullough
    RightNow Tech. Inc.

  10. #10
    Senior Member
    Join Date
    Jun 2000
    Location
    Hartford, CT, USA
    Posts
    163
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Running an exe

    Thanks... My other ignorance is in writing DLLs... how do they work and how do I create one of my own... What role do they play viz a viz OS and other classes?

    ------------------
    Jaimini Bhatt
    jaiminita@hotmail.com
    jaiminita@yahoo.com
    Jaimini Bhatt

 

 
Page 1 of 3 123 LastLast

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 07:44 AM.

Copyright BetaSoft Inc.