SPONSORS:






User Tag List

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

    Exception handling in TSL/WinRunner 5...

    Does anyone have any tips or tricks for using exception handling in WR5? I haven't used it yet and I'm not sure I fully understand it.

    Thanks in advance,

  2. #2
    Junior Member
    Join Date
    Oct 1999
    Location
    Michigan
    Posts
    27
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Exception handling in TSL/WinRunner 5...

    I've used them a couple of times when the application to be tested wasn't stable, and I wanted to start creating my scripts.

    The only tip I have is to create and activate them in a script vs creating and activating them via the WinRunner interface.

    Reasoning: If you create and activate them with the WR user interface and save the settings on exit, you may forget that the exception handling is turned on when you thought it was off.

    If you have specific questions, post them. I'm sure someone will be able to provide you with answers/recommendations/suggestions.


  3. #3
    Senior Member
    Join Date
    Jun 2001
    Location
    Redwood City,Ca.,US
    Posts
    168
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Exception handling in TSL/WinRunner 5...

    Also these handlers will slow your code to a crawl so only turn them on right before the troubled area the turn them off after.
    It is a good Idea to disable the handler once you enter into the handing code. This prevents the possibility of infinite loops. You can the turn it back on just before the handler function returns to the calling code

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

  4. #4
    SQA Council
    Join Date
    Mar 2001
    Posts
    8,591
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Exception handling in TSL/WinRunner 5...

    User (Sarah.Harrison@chase.com.nospam) posted:

    I have created an exception handler and when it is triggered a
    function is called, corrects the exception and returns to the main
    script. But instead of retrying the line that triggered the
    exception, it goes to the next line. What am I doing wrong?



  5. #5
    Moderator Joe Strazzere's Avatar
    Join Date
    May 2000
    Location
    USA
    Posts
    13,170
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0

    Re: Exception handling in TSL/WinRunner 5...

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by WinRunner:
    User (Sarah.Harrison@chase.com.nospam) posted:

    I have created an exception handler and when it is triggered a
    function is called, corrects the exception and returns to the main
    script. But instead of retrying the line that triggered the
    exception, it goes to the next line. What am I doing wrong?

    <HR></BLOCKQUOTE>

    According to the WinRunner User's Guide, you can return a value of RETRY from a TSL exception defined for a TSL Context Sensitive function. This causes the bad function to be executed again. See Chapter 23: Handling Unexpected Events and Errors.

    ------------------
    - Joe (strazzerj@aol.com)
    Joe Strazzere
    Visit my website: AllThingsQuality.com to learn more about quality, testing, and QA!

 

 

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 03:01 PM.

Copyright BetaSoft Inc.