Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Associate two recovery scenarios for a test in QTP
03-03-2010, 06:17 PM
Post: #1
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’
Find all posts by this user
Quote this message in a reply
05-25-2010, 12:22 PM
Post: #2
RE: Associate two recovery scenarios for a test in QTP
Hi Venkat,
You can add multiple recovery scenarios to your test and if the event specified in the RS matches with that during runtime, the specific RS would be executed.

"Proceed to next step" is an option for ignoring an error condition and proceeding with the next statement in the script.

Thanks


(03-03-2010 06:17 PM)venkat_1241 Wrote:  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’
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Need various scenarios for DP for testing a dynamic web application srv321 0 461 06-16-2010 03:13 PM
Last Post: srv321
  Recovery Scenarios bfakruddin 2 670 01-28-2009 10:46 AM
Last Post: bfakruddin
  Test Error Handling scenarios and create an Error Log file which document the step wh test123 0 820 04-10-2008 12:50 PM
Last Post: test123

Forum Jump:


User(s) browsing this thread: 1 Guest(s)