Pls any one tell me why we need "Recovary senario" in QTP? Cant we use Exception Handling using "VBScript", Pls give me replay
NOTE : [Thiq question was asked by Sriram]
Pls any one tell me why we need "Recovary senario" in QTP? Cant we use Exception Handling using "VBScript", Pls give me replay
NOTE : [Thiq question was asked by Sriram]
In recovery scenario, we can define how to recover from unexpected events and errors during a run session of an application.
Here we define 3 things,
1) What unexpected event or error you want to recover from,
2) What to do to recover from the event or error, and
3) What to do or how / where to continue the test after recovering.
This process is called exception handling, and that’s the name in WinRunner while in QTP it is called Recovery Scenario.
Lack of WILL POWER has caused more failure than
lack of INTELLIGENCE or ABILITY.
-sutnarcha-
hi
i agree with sutnarcha and would like to add. recovery scenario is like preparing for the unexpected.it is rather related to the environment.as every one might have encountered one or odd unexpected dialog box,it may be a error message,warning, or any suggestion by the operating system or by other program. for example1) when we enter some password in a text box, some systems may ask for saving the password and some may not.(2) in some system the printer drivers are not installed and the executing program commands the system to print a page, then the system throws an error message stating the same.these are not covered at the time of scripting the qtp as they are unexpected and not application specific,so preparing to counter such unexpected pop-ups is nothing but recovery scenario.
please correct me if i am wrong.
When a test is automated, it has a set of navigations and operations to be performed on the application under testing. These navigations and operations are in a logical sequence. This sequence is followed as a rule and is automated accordingly. Any exception to the rule (due to the reasons like; system error, application error, input error, invalid or inappropriate state of objects and controls in the application etc…) need to be identified and recovered so that the test would continue.
The process of handling such exceptions to the logical sequence (rule) is called exception handling or recovery scenario.
Lack of WILL POWER has caused more failure than
lack of INTELLIGENCE or ABILITY.
-sutnarcha-
Recovery Scenari handles unexpected errors that occur.... You can handle only known errors with your script in VB. But when there is any unknown or unexpected errors the script fails. So we use Recovery Scenario so as to skip that particular iteration and start with the next
HI,,
If there is expected exception We can handle through script it self, by using
If..Then statement and on error resume next, err.raise, err.number, err.description..methods.
But some we get unexpected errors... like object is not found..object get invisible status, Application may crash..like that
we should go for Recovery scenario manager.