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
What are the different types of recording modes in qtp? Which will be used when?
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?
Explain the difference between call to action and copy action?
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)
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
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?
Your roles and responsibilities and daily tasks? (As automation tester)
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
How to use checkpoints in qtp ?
Is any limitation to xml checkpoints?
Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.
How to attach a file to TD?
Whether qtp 9.0 supports Test director8.0
How many number of actions possible in qtp?
Generic function to search for the unique link in webtable and click on it