SPONSORS:






User Tag List

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

    How to terminate Sys_Exectute Process ?

    I have tried sys_execute function. That function call the bat file. The problem is as long as the batch file is open I cannot proceed with the testing. I can probably tell you in steps that what I am doing, so maybe you guys can help me.

    1- I have a batch file which will type some info, and then it will call the java class file, which then brings the applet window. Thats how that file looks like...

    @echo off
    ::Running the MQ Applet

    @echo Starting MQ Applet ...

    rem call d:\opt\hub\apps\viroot\scripts\classpath.bat

    cd \reply
    java request.MyRequest (this line will bring the applet window and then stay open)
    exit

    2- The problem is agent don't goes furthur if the bat file is still open. And my test actions starts in the applet window, and dos propmt has to stay open.
    3- Now what would be the workaround to do this:-


  2. #2
    Senior Member
    Join Date
    Nov 2000
    Location
    Bloomington, IL
    Posts
    142
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to terminate Sys_Exectute Process ?

    THis is a problem with using Execute, SilkTest will not move on until the command is finished and control is passed back to SilkTest.

    I have beaten this problem by recording the opened executable and using the Start method to open the application instead of a batch file.

    I am not sure if this will help or not

    Mike F

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

  3. #3
    Senior Member
    Join Date
    Jul 2001
    Location
    Elizabeth, CO, USA
    Posts
    653
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to terminate Sys_Exectute Process ?

    This is really crude, but it helps since, as mentioned, the SYS_Execute function locks the threads until it returns.

    You could also declare a DOS box and invoke it, then use TypeKeys to it to launch your batch file. SilkTest won't care if that finishes or not or when. The drawback is that you won't be able to get results out of it unless you redirect your batch file output to another file that SilkTest can then parse.

    - Dave



    ------------------
    Amelior Technology
    dreed@ameliortech.com
    WaltzingRhino.com
    A concerned Borland customer, a fly in the ointment, a wrench in the works.

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

    Re: How to terminate Sys_Exectute Process ?

    I think Segue needs to fix this issue.

    [This message has been edited by rhafeez (edited 08-23-2001).]

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

    Re: How to terminate Sys_Exectute Process ?

    I am very much surprised about Sys_Execute function, that what would be the purpose of that function if you use that function, call the .exe or a .bat file but cannot proceed furthur unless you kill that process.

    Segue really needs to work on that issue.

    what you guys think?

  6. #6
    Senior Member
    Join Date
    Oct 1999
    Location
    Tyngsborough, MA
    Posts
    211
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to terminate Sys_Exectute Process ?

    Instead of SYS_Execute, try manipulating the Start() function.


    This workaround is courtesy of Dan Tierney


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



    [This message has been edited by BrianCarroll (edited 08-23-2001).]

  7. #7
    Senior Member
    Join Date
    Jul 2001
    Location
    Elizabeth, CO, USA
    Posts
    653
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to terminate Sys_Exectute Process ?

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by rhafeez:
    I think Segue needs to fix this issue.
    <HR></BLOCKQUOTE>

    Why?

    SilkTest is not a multi-threaded process. That is, the lines of code proceed sequentially. Line A executes, then Line B, Line C, etc. If Line A (e.g.- BrowserPage.State.Select ("CA")) takes a long time to complete because the HtmlPopupList is huge and it takes SilkTest a while to scroll down to the desired selection, the next line (e.g. BrowserPage.Submit.Click ()) doesn't run just so that there's something to do.

    SYS_Execute is just a function. It goes off and tries to complete. If it hasn't completed, then SilkTest waits for it to complete just as it waits for any other function or method call to complete before running the next line of code.

    My recommendation is that, if you want to start a Java applet, you start it with the sCmdLine option in the window declaration. Look it up in the Help file (the first references to sCmdLine in the index).

    - Dave


    ------------------
    Amelior Technology
    dreed@ameliortech.com
    WaltzingRhino.com
    A concerned Borland customer, a fly in the ointment, a wrench in the works.

  8. #8
    Senior Member
    Join Date
    Oct 1999
    Location
    Tyngsborough, MA
    Posts
    211
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to terminate Sys_Exectute Process ?

    Note: the workaround I posted works not only for apps, but any command you may not want to wait for.

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

  9. #9
    Member
    Join Date
    Mar 2000
    Posts
    75
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to terminate Sys_Exectute Process ?

    I would think that in general you would want the execution to wait. For example:

    1) Execute an exe that is supposed to update several database tables using SYS_Execute
    2) Run SQL against DB to ensure it changed the appropriate tables
    3) Check the log file against a masters log files and SQL results

    In this case the execution will pass to the SQL run and the log checks possibly before the execution is finished.

    Peter

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

  10. #10
    Senior Member
    Join Date
    Oct 1999
    Location
    Tyngsborough, MA
    Posts
    211
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to terminate Sys_Exectute Process ?

    In general you would, but not always. It can be a handy trick to be able to return immediately.

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

 

 

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

Copyright BetaSoft Inc.