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..??
Answers were Sorted based on User's Feedback
Answer / uday kumar _ anem
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 |
Answer / nath t
Yes u have to mention "On Error Resume Next" statement in
the beginning of the script
| Is This Answer Correct ? | 0 Yes | 1 No |
Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.
what is key word driven frame work ? why it is called like that ? what is the diference between keyword driven and data driven frame work ?
w is configaration management
How to open a new test using quicktest professional?
How to create configuration scripts
If a object property is changed in the application. where it should be updated in QTP... Pls anybody can give the answer.. Thanks in advance...
What are the main attributes of test automation?
Why do you create a text checkpoint on a Web application? What is the purpose of the Close method?
Suggest and Define a solution for an application whose objects are not recognized by UFT?
What is the exact difference bet function and action in QTP Anybody can explain it in detail..Thanks in advance..
any challange that faced in your project? (please give me some examples in your project?
Please explain the role of Regular expression in QTP