SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 6 of 6
  1. #1
    Junior Member
    Join Date
    Oct 1999
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Closing Applications

    Does anyone know how to automatically close a window on the desktop?

    I can start SilkTest with a batch file (by starting partner.exe) but how do you close it after it has completed testing? I would also like to close the browser it opens as well.

    Help greatly appreciated

  2. #2
    Moderator AJ's Avatar
    Join Date
    Jun 1999
    Location
    San Jose, CA
    Posts
    1,691
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Closing Applications

    Use

    TestCaseExit ()
    if MainWin.Exists ()
    MainWin.Close ()

    or you can get fancy and have a list of windows to cycle through

    The top is if you want to close the MainWin after each testcase, if you just want to close it after a complete run, use:

    ScriptExit () instead of TestCaseEnter ()


    ------------------
    AJ Alhait
    BetaSoft Inc.

    [This message has been edited by AJ (edited 01-21-2000).]
    AJ Alhait
    BetaSoft Inc.

  3. #3
    Junior Member
    Join Date
    Oct 1999
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Closing Applications

    MainWin.Exit() exits the application containing the main window but how do I exit SilkTest? This may be more of a windows question. Is there a command that kills a process? Like Unix kill.

  4. #4
    Points for Confirmed Friends
    Guest

    Re: Closing Applications

    Try using the -q switch for command line processing. This will close the partner.exe after the script is done running. It is documented in the User's Guide.

  5. #5
    Member
    Join Date
    Dec 1999
    Location
    Seattle, WA
    Posts
    64
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Closing Applications

    I'm guessing your reason for doing this is the same as ours, AGENT.EXE very clearly has a resource leak and slows down. I told their support about this and it's been in there a pretty long time.

    Anyway, we've been killing Partner by including a kill.exe program in our script directory and creating a ScriptExit() function to execute it.

    Now I feel foolish having seen the -q parameter from last posting. I thought this was simply a shortened version of -query, so now I'll simply change my bat to include a -q in addition to -r.

    Thanks John
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>It doesn't matter if I go to heaven or to hell, I have friends in both places.<HR></BLOCKQUOTE>

    [This message has been edited by Matt Sullivan (edited 01-21-2000).]
    <BLOCKQUOTE]<font size=1 face=Verdana, Arial, Helvetica]quote:</font]<HR]It doesn't matter if I go to heaven or to hell, I have friends in both places.<HR]</BLOCKQUOTE]

  6. #6
    Junior Member
    Join Date
    Jul 1999
    Location
    Campbell, CA
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Closing Applications

    The NT Resource kit has UNIX like commands - kill, diff, ls, etc.

    Olinda

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

 

 

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.40 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.71%
vBulletin Optimisation provided by vB Optimise v2.7.1 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.3.0 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 04:56 AM.

Copyright BetaSoft Inc.