SPONSORS:






User Tag List

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)

    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
    AJ
    AJ is offline
    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)

    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)

    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
    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)

    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)

    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
  •  

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 09:26 AM.

Copyright BetaSoft Inc.