ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
1.  Can anyone help me with recovery scenarios, each type 
with examples and also what is on error resume next?
 Question Submitted By :: Subaash Patil
I also faced this Question!!     Rank Answer Posted By  
 
  Re: 1. Can anyone help me with recovery scenarios, each type with examples and also what is on error resume next?
Answer
# 1
While executing your scripts you may get some 
UNEXPECTED/UNPREDICTABLE errors. (like printer out of 
paper). To "recover" the test (and continue running) from 
these unexpected errors you use Recovery Scenarios.
Types:
Trigger Event. The event that interrupts your run session. 
For example, a window that may pop up on screen, or a QTP 
run error.
Recovery Operations. The operations to perform to enable 
QTP to continue running the test after the trigger event 
interrupts the run session. For example, clicking an OK 
button in a pop-up window, or restarting Microsoft Windows.
Post-Recovery Test Run Option. The instructions on how QTP 
should proceed after the recovery operations have been 
performed, and from which point in the test QTP should 
continue, if at all. For example, you may want to restart a 
test from the beginning, or skip a step entirely and 
continue with the next step in the test.

On Erro resume Next:
If you can predict that a certain event may happen at a 
specific point in your test or component, it is recommended 
to handle that event directly within your test or component 
by adding steps such as If statements or optional steps 
or "on error resume next", rather than depending on a 
recovery scenario. Using Recovery Scenarios may result in 
unusually slow performance of your tests.They are designed 
to handle a more generic set of unpredictable events which 
CANNOT be handled programmatically.
For Example:
A recovery scenario can handle a printer error by clicking 
the default button in the Printer Error message box.
You cannot handle this error directly in your test or 
component, since you cannot know at what point the network 
will return the printer error. You could try to handle this 
event in your test or component by adding an If statement 
immediately after the step that sent a file to the printer, 
but if the network takes time to return the printer error, 
your test or component may have progressed several steps 
before the error is displayed. Therefore, for this type of 
event, only a recovery scenario can handle it.
I would not go into details of how to create files and how 
to define them since they are fully covered in QTP 
Documentation. Mercury QuickTest Professional User's Guide 
> Working with Advanced Testing Features > Defining and 
Using Recovery Scenarios >
 
Is This Answer Correct ?    0 Yes 0 No
Ajay
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
In real time whenever we found bug , after that where you send to that bug. send to T.Lead or Directly Developer. Plz explain me?  2
Hi all, On recording a particular Web application with QTP,Have came across a problem for which I havent found a solution so far.. The script of importance is as follows: Browser("Personalized Start Page").Page("XYZ").Frame ("mainFrame_4").Link("address.csv").Click Browser("Personalized Start Page").Page("XYZ").Sync Dialog("0% of dms.php from XYZ-").Dialog("File Download").WinButton("Save").Click My problem is that on recording the application with QTP and clicking the "address.csv" link another browser window comes up temporarily followed by the Windows "FileSave" dialog.The browser window which came up closes down when the Windows "FileSave" dialog is visible and I save the file to a windows location. On the "Record and Run" settings under Qtp,have activated settings for web and windows applications. But when I run this recorded script,and after the "address.csv" click,The browser window comes up and goes down,No Windows "FileSave" dialog comes up and the QTP shows the error Dialog("0% of dms.php from XYZ-") object is not found,though this object is there in the repository. Have tried putting the Dialog("0% of dms.php from XYZ- ").Exist property.But the "Exist" property is not recognised by the dialog at all. Any help in this direction is appreciated.. Thanks in advance J ADP1
if interviewer asked about the framework used for automation how we will handle the question..means what should be the answer..plz help..which framework u r used in our company? iGate1
give one example where you have used regular expression? Ordain-Solutions6
How to make "TEST Batches" in manual testing . How it is possible plz explin in detail?  1
need clear explanation of actions and functions in qtp with examples?can anyone suggest me gud site for that other than qtp manual?  1
What is API Satyam1
how to write script in qtp(vbscript)..i mean with out application deployed..and how to call script1 into script2?  2
Will QTP gets installed on virtual PC.What is the maintenance number to be given  1
How do you invoke an application using the step generator in qtp?  5
How to handle Run-time errors?  2
How do you find out whether the string is Numeric or Alpha numenric.Suppose..'QTP is an automation testing tool 12345' How should I know it is alphanumeric.Can any one please write the code for this  3
Without QTP (or any Testing tool) can we able to test the GUI part of the Applications. for Example generating the Scripts in Notepad and Executing them Using VB. Is it Possible to do so..  1
how to call a funtion in a script? i have saved the login scipt in notepad. with extension .vbs. But when i am calling the function with the keyword CALL <Function Name>. its not working out. can any one give me a clue how to call the external functions. with example.  3
what is the use of VIRTUAL OBJECTS? explain ?  4
how much space occupies in object respository by default? VSoft5
tell me about framework types and most used framework in real time. types of output value in details. diff between wr and qtp in detail.  2
WE ARE PLANING TO DESIGN AUTOMATION FRAME WORK. HOW TO CALL CONFIGURATION SCRIPT FILE(.VBS) FROM DRIVE SCRIPT FILE(.VBS)  1
in a database table there are 3 columns (name , marks,grade) , in application after retrieving data from db to fields name, marks click ok button then grade should displayed ---for this how to write vb script prgm IBM3
I want to test advanced Java applications what kind of add- ins I have to install?  1
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com