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
if anyone has idea of the interview procedure in covansys, plz send me a mail?
Explain different type of event trigger option.
Explain QTP using different development techniques ?
how to test use the quality control .how to verify the image verification
how to disable the pop ups through QTP using a script
Does quicktest professional (qtp) is unicode compatible?
How would you export a script from one pc to another in qtp?
explain structured testing? plz guys with exp. do answer
Which scripting language used by quicktest professional (qtp)?
in data driven testing for performing operations which method is easy from manual test data,keyword view,or from database.and why?
How to change the priorities of the recovery scenario properties?
How do I lauch my test website using code from qtp in different environmet, uat and PPTE?
Could any one tell me "How can i recognize my cursor position using QTP 9.2" Give me a scripts for this
What are the types of data tables in qtp?
how can i call function (which has link with excell sheet at a remote location) within another function