Results 1 to 7 of 7

Thread: Why do we need "Recovary senario" in QTP

  1. #1
    Expert Member
    Join Date
    Oct 2006
    Answers
    209

    Why do we need "Recovary senario" in QTP

    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]


  2. #2
    Expert Member
    Join Date
    Nov 2006
    Answers
    518

    Re: Why do we need "Recovary senario" in QTP

    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-

  3. #3
    Junior Member
    Join Date
    Sep 2006
    Answers
    2

    Re: Why do we need "Recovary senario" in QTP

    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.


  4. #4
    Junior Member
    Join Date
    Jan 2007
    Answers
    23

    Re: Why do we need "Recovary senario" in QTP

    Quote Originally Posted by sutnarcha View Post
    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.
    --------------

    can you expalain what is meant by excepetional handling?


  5. #5
    Expert Member
    Join Date
    Nov 2006
    Answers
    518

    Re: Why do we need "Recovary senario" in QTP

    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-

  6. #6
    Expert Member
    Join Date
    Apr 2007
    Answers
    147

    Re: Why do we need "Recovary senario" in QTP

    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


  7. #7

    Re: Why do we need "Recovary senario" in QTP

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact