SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Aug 2001
    Location
    Itasca, IL
    Posts
    61
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Starting an Application

    Hi,
    I'm running scripts nightly on a remote machine from a test plan. In my scripts I start up an application, when the scripts run initially, the script stalls on the start up, it doesn't go any further. I have to abort the script, restart the Silk Agent on the remote machine and then run the scripts again. After I do this the scripts run fine. Has anyone encountered this problem of Silk Test getting hung when initially starting an application automatically?

    Thanks..

  2. #2
    Super Member
    Join Date
    Jul 2003
    Location
    Boulder, CO
    Posts
    1,276
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Starting an Application

    Search the SilkTest forum for SYS_EXECUTE and you'll find many posts about this.
    Chris R Mead

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

  3. #3
    Member
    Join Date
    Aug 2001
    Location
    Itasca, IL
    Posts
    61
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Starting an Application

    Hi Chris,

    I'm not using SYS_EXECUTE.
    This is what I'm doing:

    wWindow.Start (Filename)

    For the file name I'm passing the path to the executable file at runtime. This statement will execute the application but then it will just hang there. Silk test doesn't go to the next line of code to complete the testcase.

  4. #4
    Super Member
    Join Date
    Jul 2003
    Location
    Boulder, CO
    Posts
    1,276
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Starting an Application

    rhafeez,

    Your problem is that you need have an asynchronous start... the thing you run needs to run to completion for silk to keep going (i.e branch/fork the process). Try making a shortcut to Filename, and then use:

    wWindow.Start (Filename.exe.lnk)

    See if that works for you.

    Chris
    Chris R Mead

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

  5. #5
    Member
    Join Date
    Aug 2001
    Location
    Itasca, IL
    Posts
    61
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Starting an Application

    Chris,

    Making a shortcut is not possible because I'm testing the uninstall and install of an application. Every night a new build is created and I need to test that. Also, I don't understand that the statement in the test case run fine without any problems second time around. It's just the first time that it starts up the application. Any suggestion?

    Thanks,
    rhafeez

  6. #6
    Super Member
    Join Date
    Jul 2003
    Location
    Boulder, CO
    Posts
    1,276
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Starting an Application

    In of the more recent posts regarding SYS_EXECUTE and related topics someone posted code to do what you are trying to do, I think. I haven't tried the code myself. He ends up using ShellExecuteA from shell32.

    Try that out. It is on page 2 and is called 'Invoking an Application.'

    Myself I use the shortcut method and create shortcuts on the fly using an external call to a vbscript.
    Chris R Mead

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

  7. #7
    Member
    Join Date
    Aug 2001
    Location
    Itasca, IL
    Posts
    61
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Starting an Application

    Thanks, I'll look into that.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin 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 06:49 PM.

Copyright BetaSoft Inc.