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                      
tip   To Refer this Site to Your Friends   Click Here
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
When we use 'ERR' object to handle the exceptions in the 
script, do we need to include any statement in the 
beginning of the script..??
 Question Submitted By :: Kumar
I also faced this Question!!     Rank Answer Posted By  
 
  Re: When we use 'ERR' object to handle the exceptions in the script, do we need to include any statement in the beginning of the script..??
Answer
# 1
Yes u have to mention "On Error Resume Next" statement in 
the beginning of the script
 
Is This Answer Correct ?    0 Yes 0 No
Nath T
 
  Re: When we use 'ERR' object to handle the exceptions in the script, do we need to include any statement in the beginning of the script..??
Answer
# 2
Generally, when QTP encounters a run time error during
running the scripts, it shows the error message in a pop up
window and the script execution will stops.

If you wish to display your own error message and you wish
to continue with the script, then we will use Err object.

We have to use "On Error Resume Next" statement before the
runtime error is returned.

The general usage of the Err object is like:

On Error Resume Next

dim fileSysObj
fileSysObj=createobject("Scripting.FileSystemObject")

fileSysObj.folderexists("c:\uday") 'assume this folder
doesnt exist
'QTP shows the error message here itself and stops
execution, if "On Error Resume Next" statement doesnt exists


If Err.Number <>0 then
 msgbox("Here it prints") 'Because of Err object we can give
our own error message
end if
 
Is This Answer Correct ?    1 Yes 1 No
Uday Kumar _ Anem
 
 
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
what type of scripts are asked in qtp?  2
Wht are the BY default Add-ins in QTP 9.2 version and what all are differences between 8.2 and 9.2 Siemens1
Can we directly automate test script according to requirements?  1
where the object repository is located?how to choose the object repository as shared or action object repositories? Datamatics3
where did you automate in your project?(please tell me example senarios)  2
How many ways to configure the application in QTP,Explain CTS2
Actually what is Quality center..is it Test Director or some other tool..Anybody can expalain it in detail..Thanks in advance.. Sony3
how can i count the number of links???  2
What is Automation frame work.How we will prepare in real time. AppLabs8
Hi friends, I have heard that it is required to have an application hosted in the same machine where we use QTP. Otherwise QTP may identify the objects incorrectly. Please clear me is it true.  3
how to click the link in webpage by using QTP Script????????  2
How to make arguments optional in a function? Liquid-Crystal2
What is Virtual Object? Plz Explain me with an example? Ordain-Solutions2
What is Version control?  2
Today only i joined in this site. Can u please tell me definition of parameterization. and how i can do the parameterization?  3
What is the use of "Registeruserfunc" when should we use it? Note:Please do not copy paste the date from QTP help. I tryed it.But I don't Understand where should we use exactly. Livetek2
Error handling Wipro2
how can we call an external library file in QTP apart from using the Executefile statement..?? is there any other way we can call the external library file in QTP..?? DST-Global-Solutions1
In QTP, As a first step wht we will do before going to start a Automation....when it will be decided that we have to go for a Automatio..and who will decide to go for Automation. Any body can pls let me know.. Thanks in Advance..  1
What is XML checkpoint in QTP. How we can use in Web Based application LinkEdge2
 
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