SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    May 2001
    Location
    Santa Clara, CA, USA
    Posts
    57
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    How to Abort Silk Test ?

    I am running a script which starts the installation using Installsheild. In this I pick up the exe to be installed from the server.
    In case if the path is not found I want to trap that (till here it is all fine) and then abort but then
    How do I Abort the whole test programatically ?? (I do not want to proceed furthur but want to throw a Error Message and terminate the Test)

    I know it could be silly for many but any suggestions on this are most welcome.

    Thanks

  2. #2
    Super Member
    Join Date
    Jul 1999
    Location
    Rancho Santa Margarita, CA
    Posts
    1,464
    Post Thanks / Like
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0

    Re: How to Abort Silk Test ?

    You can start by checking out the Online Help. Read up on do...except and last but not least, you may want to try this new function called $StopRunning () which is also described in the Online Help (but not fully tested).


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

  3. #3
    Member
    Join Date
    May 2001
    Location
    Santa Clara, CA, USA
    Posts
    57
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to Abort Silk Test ?

    Thanks for the message it worked . I also checked the link http://www.qaforums.com/Forum1/HTML/001805.html

  4. #4
    Senior Member
    Join Date
    Aug 1999
    Location
    Cambridge, UK
    Posts
    470
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to Abort Silk Test ?

    An alternative would be to raise an exception if the path is not found. This way, you can have more control of what happens. For example, you might want to write a testcase which confirms that the installer reacts correctly when the path is not there to be found (and raising exceptions is the best way I've yet found of testing an aut's reactions to bad data etc.).

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

  5. #5
    Senior Member
    Join Date
    Jul 1999
    Location
    Bellingham, WA USA
    Posts
    1,323
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to Abort Silk Test ?

    ... also in using Gilbert's do/except approach, a well placed exit will punt you out of your current testcase. If that is not what you want, then in the except portion of this pairing, I'd vote for the raise statement Vince mentioned.

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

  6. #6
    Senior Member
    Join Date
    Aug 1999
    Location
    San Diego, CA USA
    Posts
    219
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to Abort Silk Test ?

    You might want to read-up on the "exit" and "return" statements in the online help. I use "return" quite a bit to abort a testcase for various reasons - with and without logging an error or warning.

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

 

 

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 05:44 PM.

Copyright BetaSoft Inc.