Pls any one tell me why we need "Recovary senario" in QTP? Cant we use Exception Handling using "VBScript", Pls give me replay
NOTE : [I][Thiq question was asked by Sriram][/I]
Printable View
Pls any one tell me why we need "Recovary senario" in QTP? Cant we use Exception Handling using "VBScript", Pls give me replay
NOTE : [I][Thiq question was asked by Sriram][/I]
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, :D
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. :cool:
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 example:(1) 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.
[QUOTE=sutnarcha;5201]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, :D
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. :cool:[/QUOTE]
--------------
can you expalain what is meant by excepetional handling?
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 [U]logical sequence[/U]. This sequence is followed as a [U]rule[/U] and is automated accordingly. Any [B]exception[/B] to the [U]rule[/U] (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 [U]recovered[/U] so that the test would continue.
The process of [B]handling[/B] such [B]exceptions[/B] to the logical sequence (rule) is called [B]exception handling[/B] or [B]recovery scenario[/B].
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
[B]If..Then [/B]statement and [B]on error resume next, err.raise, err.number, err.description[/B]..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 [B]Recovery scenario manager. [/B]