QTP Forums

Full Version: Disadvantages of Recovery Scenarios
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Has anyone come across a disadvantage of using a recovery scenario ??
Yeah, make sure you use it when and where it's really required, people often mistake it with 'error handling'. RS are used for 'exception handling'. As far as the disadvantage, it makes your scripts go slow.
(08-07-2009 11:46 PM)Ankur Wrote: [ -> ]Yeah, make sure you use it when and where it's really required, people often mistake it with 'error handling'. RS are used for 'exception handling'. As far as the disadvantage, it makes your scripts go slow.

Hi Ankur,
How does it becomes slow when we use Recovery scenario manager?
Can u please explain with sort of examples....
Does this based on Navigatio Time out,...
In case you choose to select "Always" under Recovery Scenarios. QTP will try to look for trigger event on each and every step of execution, thus making the system go slow.
So it is advisable to use RS with 'Errors' option enabled only.
(11-03-2009 10:00 PM)Ankur Wrote: [ -> ]In case you choose to select "Always" under Recovery Scenarios. QTP will try to look for trigger event on each and every step of execution, thus making the system go slow.
So it is advisable to use RS with 'Errors' option enabled only.

Hi Ankur,
Thanks for replying,
Here "Always" under recover scenario means--> Popup Window (A window poups up in an opened application during the test run)

i.e which is alwasys trying to look for trigger event on each and every step execution

RS with "Errors" means --> Test Run error (A Step in your test does not run sucessfully) here we have to select the appropriate option under this which is "Object Not Found" as becuase we would not when the exception message comes when it comes then corresponding object will not be found in object repository so i am thinking that this is the best option.

Please Ankur, let me know if i am thinking in wrong direction.
(11-04-2009 07:01 AM)venkatbatchu Wrote: [ -> ]
(11-03-2009 10:00 PM)Ankur Wrote: [ -> ]In case you choose to select "Always" under Recovery Scenarios. QTP will try to look for trigger event on each and every step of execution, thus making the system go slow.
So it is advisable to use RS with 'Errors' option enabled only.

Hi Ankur,
Thanks for replying,
Here "Always" under recover scenario means--> Popup Window (A window poups up in an opened application during the test run)

i.e which is alwasys trying to look for trigger event on each and every step execution

RS with "Errors" means --> Test Run error (A Step in your test does not run sucessfully) here we have to select the appropriate option under this which is "Object Not Found" as becuase we would not when the exception message comes when it comes then corresponding object will not be found in object repository so i am thinking that this is the best option.

Please Ankur, let me know if i am thinking in wrong direction.

Ankur is referring to setting you choose for invoking RS
(11-04-2009 07:01 AM)venkatbatchu Wrote: [ -> ]
(11-03-2009 10:00 PM)Ankur Wrote: [ -> ]In case you choose to select "Always" under Recovery Scenarios. QTP will try to look for trigger event on each and every step of execution, thus making the system go slow.
So it is advisable to use RS with 'Errors' option enabled only.

Hi Ankur,
Thanks for replying,
Here "Always" under recover scenario means--> Popup Window (A window poups up in an opened application during the test run)

i.e which is alwasys trying to look for trigger event on each and every step execution

RS with "Errors" means --> Test Run error (A Step in your test does not run sucessfully) here we have to select the appropriate option under this which is "Object Not Found" as becuase we would not when the exception message comes when it comes then corresponding object will not be found in object repository so i am thinking that this is the best option.

Please Ankur, let me know if i am thinking in wrong direction.

Ankur is referring to Test Settings you choose for invoking RS.
navigation >>File >> Settings >> 'Recovery' tab
under Recovery tab you will find Option "Activate Recovery Scenarios:" , here you need to select options which would tell QTP when to look for trigger events of respective RS attached for the Test
Reference URL's