SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5

Thread: Exit Iteration

  1. #1
    Senior Member
    Join Date
    Mar 2007
    Location
    Mumbai, India
    Posts
    257
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Exit Iteration

    Hi All,

    IS there any feature like "Exit Iteration" in Test complete or we need to problematically implement it. Right now we are following the latter but it creates certain problem. Thats why was wondering if TC supports anything like Exit Iteration that automatically discontinue my iteration and cant take it to next one

    Thanks
    Regards,
    Performance Learner

  2. #2
    Member
    Join Date
    Mar 2009
    Location
    Germany, Lingen
    Posts
    94
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Exit Iteration

    i don't know if i understand your problem correctly but if you mean Tests in a project as iterations, you can use
    Runner["Stop"](CurrentTestOnly = true);
    to stop a test and go to the next one without stopping the execution of a whole project of tests...
    Best regards,

    Johannes Moebius

    Note: every post contains personal oppinions which are not coactive representing the oppinion of the ROSEN Group

    ===============================================
    Using: Testcomplete V 9.20.2460.7 - Jscript
    ===============================================

  3. #3
    Senior Member
    Join Date
    Oct 2003
    Posts
    928
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Exit Iteration

    Hi,

    As far as I understand, you are using the VBScript scripting language. If so, you need to use the Exit statement. For example, if you need to exit from a routine/a function, you need to use the "Exit Sub" or the "Exit Function" statement, depending on the routine's type. Please see the following MSDN Library article for more information:
    http://msdn.microsoft.com/en-us/libr...3x(VS.85).aspx

    If this is not what you need, please clarify your request.
    Regards,
    Alex - SmartBear Support

  4. #4
    Senior Member
    Join Date
    Jun 2009
    Posts
    162
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Exit Iteration

    Hi Perf Learner,

    Are you talking about the following tests in your TestComplete control panel ?

    Test1 (1 x iteration)
    Test2 (3 x iterations)
    Test3 (2 x iterations)

    So if TestComplete is currently running Test2 (2nd iteration) and you want to exit from this without running the 3rd iteration, the go straight to Test3 ?


    Or do you mean :

    TestComplete is currently running Test2 (2nd iteration) and if an error occurs, stop all tests ?





    dotTRM

  5. #5
    Senior Member
    Join Date
    Jun 2009
    Posts
    162
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Exit Iteration


    There's the Stop on Error, and Stop on Exception properties that you can set. Look in the Helpsystem for these two topics for more details.


    dotTRM

 

 

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.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.00%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin 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:41 AM.

Copyright BetaSoft Inc.