While the test is running if unexpected errors,events and application crashes will interrupt the run session. So its effect the running session.
EX: Pop up or advertisement may appear in website. This is may not occur during the recording session.its not unpredictable
Overcome this scenario QTP handle the recovery scenario.The recovery wizard proved the option to define the recovery scenario , which includes a definition of an unexpected event and the operation for necessary to recover the run session.
Ex:
1) unpredictable scenario:
Define the recovery scenario to handle the printer errors. if the printer errors occurs during the run session, the QTP instruct to click default 'OK' button in the error message.
2) Predictable scenario
we know the overwrite file manager box open when the save buttton clicked during the run session, you can handle this session to write 'IF' statement then click OK. In this type we no need to use recovery scenario.
Key Elements of Recoery Scenario
Trigger Event -> unperdictable event, error occured.(Ex:Pop up open)
Recovery operation -> the QTP process the recovery opertions. Ex: click 'OK' button in the check box.
Post recovery test run option -> its it instruct to QTP how its performed after recoery option option completed, and from which point text may run. Its may from next step of from starting point.
Creating Recovery Scenario:
* Recorey scenario contains following fine steps
-> Define the Trigger Event that interrupts the run session.
-> Specify the Recivery operation required to continue.
-> Choose Post Recovery test for next run operation.
-> Specify the name or description of the recovery operation.
-> specify the whether to associate current recovery operation to current test or all test.
* There are 4 types of trigger events that disturb the script flow. they are
1) POP UP WINDOW -> Unexpected popup -> EX: Printer paper out pop up window
2) TEST RUN ERROR-> Return value of test script statement -> Ex:Item not available in list box.
3) OBJECT STATE -> Change in property value of an object -> Ex: A button enabled from disbaled state.
4) APPLICATION CRASH -> Crash of the application -> EX : Application terminated by an operation during the run time.
POP WINDOW RECOVERY SCENARIO OPERATION
* Open Resoucres-> Recovery scenario manager
No comments:
Post a Comment