Hello Everybody,

Please tell me the concept of recovery management in QTP by
giving any practical example of it.

Thanks,
Gaytri

Answer Posted / nath .t

Hi Gayatri,

Recovery Scenario is useful for to avoid the runtime
expections. QTP allows 4 types of expections. they are

1. Popup Expections
2. An Object
3. Test Run Error
4. Application Trash

Ex:- if u want to check login page. in login page have
User name,Password, OK, Cancel objects. u want to check for
different test data.

User name: must allows min:four characters and max:8
characters(only alphabets)
Password: must allows alphanumeric min:5 characters
and max:10 characters.

u have datatable in that so many test data like

UserName Password
1. Sai xxxxx
2. rama xxxxxx
3. krishna xxxxx

in the above table 1st test data situation is failed.
here one popup window raise at run time and it shows u must
enter min 4 characters. to avoid this expection at run
time we can use Popup window expection in recovery scenario.

if u go through Tools Menu--> Recovery Scenario

without using Recovery Scenario we can write our own script
also like as

if window("Login").dialog("Expection window").exist then
window("login").dialog("Expection window").winbutton
("ok").click
window("login").winbutton("cancel").click
end if

like this way we can write our own script to avoid
exception at run time.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of recording modes in qtp? Which will be used when?

551


Hi, i run scripts in one machine those r passed.when i run the scripts in client side those r failed.Give me such a scenario when ever u faced?

1505


Explain the difference between call to action and copy action?

510


How can we import into Excel "Details" ,"Result" ,"Time" parameters from within a Results Report which is generated after a Run error when a script is executed in QTP? Refer E.g below Status Functionality Description RunDate Fail Login User should be able to Login 12/3/2007 StartTime EndTime Details* 1:31:58 PM 1:32:29 PM (this one i want)

1519


descriptive program for a yahoo mail that is in yahoo mail suppose check box mailid subject assume it is like this format all things are in webtable the question is suppose some mail ids are there in that mailids i want to select the check box wich is before a@gmail.com and after that i want to click on delete button

1800






Hi frens! I am testing VB project with MS Access database. At add button click my record is storing in data table and it is shown in datagrid. So at Delete button click i want to check datagrid rows 9before and after delete). so how can i do it using descriptive programming?

1456


Your roles and responsibilities and daily tasks? (As automation tester)

2574


i am trying to automate yatra.com,in that site, when i go to automate the Leaving from field showing as a WEBEDIT, but when i enter 1 or 2 char, it displaying dropdownlist, i try to use keyboard automation to select the item from that list but it is not possible, can anybody help he. Thans for posting the Answer

3484


How to use checkpoints in qtp ?

575


Is any limitation to xml checkpoints?

551


Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.

1546


How to attach a file to TD?

643


Whether qtp 9.0 supports Test director8.0

2112


How many number of actions possible in qtp?

596


Generic function to search for the unique link in webtable and click on it

2477