SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Feb 2010
    Posts
    54
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Associate two recovery scenarios for a test in QTP

    Is this possible for a test to have multiple recovery scenarios and the test has to trigger through specific recovery basing on the condition.

    Here is the brief demonstration of it.

    I have a piece of code which causes my script to fail (as it is known issue… I cant handle this through the script(constraint) ) I have written a recovery scenario(RS1) and it triggered properly when any error arises. Later I enhanced my script to capture my error which QTP throws during run time and depending on the error I want script to trigger recovery scenario (RS2). Is that possible …? (I have associated both the recoveries to the test…What I observed is it is running both the recovery scenarios whenever any error arises in the script).

    One more doubt is how does ‘recovery scenarios’ differ from the ‘When error occurs during run session: Proceed to next step’

  2. #2
    Member
    Join Date
    Feb 2007
    Posts
    347
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Associate two recovery scenarios for a test in QTP

    Instead of going for recovery scenarios, you can use custom error handling functions which you can call at your ease anytime during the script.
    Vishal Aggarwal
    Test Architect
    http://testocean.blogspot.in/

  3. #3
    Super Member Jonty's Avatar
    Join Date
    Jan 2007
    Location
    India
    Posts
    1,266
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Associate two recovery scenarios for a test in QTP

    I am not sure it will run both the scenarios, the scenarios should be activated in the order they are arranged/assocaited in the recovery tab.

    Proceed to next step will carry the error forward and will try to execute the next LOC.

    Recovery scenarios will try to handle the error with whatever settings/function you have written and then move to next LOC. The chances error being carried forward here would be less, ofcourse depending on your RS

    But yes, using custom functions are better than using RS
    Cheers
    Jonty..
    -- Here to Learn and share ---

 

 

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.71%
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 10:01 AM.

Copyright BetaSoft Inc.