SPONSORS:






User Tag List

Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Jun 2000
    Posts
    50
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Stopping script execution

    Is there a way to stop execution of a script ? I know you can stop execution of a testcase and skip to the next one, but how about stopping a script ?

    In my case, I need to stop the testcase if a window necessary to test script execution was not found...

  2. #2
    Guest

    Re: Stopping script execution

    Use the exit statement.

  3. #3
    Member
    Join Date
    Jun 2000
    Posts
    50
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Stopping script execution

    Thanks again John :-) I don't know why I couldn't find it in the help file by myself..

  4. #4
    Junior Member
    Join Date
    Oct 1999
    Location
    Germany
    Posts
    24
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Stopping script execution

    maybe you've other ways if you need
    - raise 1,"window xy is required, stopping"
    will generate a SilkTest error code, which you can catch with any do/except statements or simply lets your scripts stop here
    - @("$StopRunning")()
    will stop the entire script !without! using the basestate for any kind of restore; this may help while developing testcases but is a bit hardly, sometimes SilkTest don't like it.

 

 

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 10:38 PM.

Copyright BetaSoft Inc.