What is the difference between Recover Scenario(screen) and
on Error Resume Next(code)

Answers were Sorted based on User's Feedback



What is the difference between Recover Scenario(screen) and on Error Resume Next(code)..

Answer / sagar kumar sutar

Recovery scenario manager is used to handle the run time
error and it is able to handle the pop-up window, Object
state, Application crash and test run error.
Where as, On Error Resume Next will handle the particular
code snippet where exactly the error occurs. And it skips
the line and it will take to other code and it is used only
when there is thousand lines of code available and i don't
want to stop my test run for a minor error.

Thanks in advance if i m wrong correct me.

Is This Answer Correct ?    5 Yes 1 No

What is the difference between Recover Scenario(screen) and on Error Resume Next(code)..

Answer / chandrashaker rao suguru

Recover Scenario: it deals with interfaces to do not
interupppt the test execution by the above reasons.
Error Resume Next: it deals with the source code only to do
not interupppt the test execution.

Is This Answer Correct ?    2 Yes 0 No

What is the difference between Recover Scenario(screen) and on Error Resume Next(code)..

Answer / hina

Recovery scenarios are used when you cannot predict at what step the error is going to occur. for eg- application crash.you can provide post action wherein if application crash occurs some specific action can be performed On error resume next is used where you are quite sure about the error. If that particular error occurs it will skip that line of code and move to next line.It is used when you dont want your execution to halt for a minor error.The type and number of error can be described using err number and err description.

Is This Answer Correct ?    2 Yes 0 No

What is the difference between Recover Scenario(screen) and on Error Resume Next(code)..

Answer / viji

Recovery scenario manager has handling three kind of errors
i) POP-UP, ii) RUNTIME and iii) OBJECT STATE.
whenever you run the script it may detect some exceptions
like pop up , runtime and object state you can you Recovery
scenarion manager and resolve those three kind of
exceptions.

I do not have idea about Error Resume, am new to
QTP.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More QTP Interview Questions

In QTP 8.2 there are lot of check points is this same in latest version QTP 9.5 ?

2 Answers  


What is keyword view in qtp?

0 Answers  


I am using excel sheet to export data to QTP but it selects just one row of data from excel sheel how to import all rows of excel sheet to QTP during runtime

10 Answers   IBM, Wipro,


What is debugging? How you debug your script?

0 Answers  


what is the difference between development and testing

1 Answers  






Did you find anything in your project that QTP proved inefficient to perform?

1 Answers  


i have qtp 9.4 ver software.but i don't know the license key. if anyone have license key please send it to my personal mail id(munir.reddy@yahoo.com

0 Answers   Wipro,


Hi All Below is my script which i made for lgin into Flight.exe. SystemUtil.Run "C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe","","C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\","open" Dialog("Login").WinEdit("Agent Name:").Set DataTable ("p_Text", dtGlobalSheet) Dialog("Login").WinEdit("Agent Name:").Type micTab Dialog("Login").WinEdit("Password:").SetSecure DataTable ("p_Text1", dtGlobalSheet) Dialog("Login").WinButton("OK").Click If Dialog("Login").Dialog("Flight Reservations").WinButton ("OK").exist Then Dialog("Login").Dialog("Flight Reservations").WinButton ("OK").Click datatable.Value(3)= "Incorrect password. Please try again" Dialog("Login").WinButton("CANCEL").Click elseif Dialog("Login").Dialog("Flight Reservations").WinButton("OK").exist Then Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click datatable.Value(3)="Please enter agent name" Dialog ("Login").WinButton("CANCEL").Click elseif Dialog("Login").Dialog("Flight Reservations").WinButton("OK").exist then Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click datatable.Value(3)= "Please enter password" Dialog("Login").WinButton ("CANCEL").Click else Window("Flight Reservation").Move 309,146 datatable.ExportSheet "C:\Raj\Result.xls" ,1 Window("Flight Reservation").Close End If I want to capture the Message string from Dialog("Login").Dialog("Flight Reservations" Also pls let me know if this is the right way to do the script for login. Pls provide some script for login Flight.exe Thanks in advance Raj Dhiman

1 Answers  


Hi cud you plz answer my question.. what is the size of Object Repository?

8 Answers   TCS,


does qtp runs on internet explorer 7.0

5 Answers   BeBo Technologies,


What is the extension of script and object repositary files?

7 Answers   Maveric,


How is GC reddy online program Will i get placed How are the placements.

1 Answers  


Categories