1. how can you handle exceptions without using recovery
scenario?
Answer Posted / baba
Hello buddy,
If the Error is predictable... You know that Test Script
has an error, while running the script the error will come.
Here, you can use "On Error Resume Next"
On Error Resume Next
Err.Raise 6 ' Raise an overflow error.
MsgBox "Error # " & CStr(Err.Number) & " " & Err.Description
Err.Clear ' Clear the error.
here
e.g.
On Error Resume Next
msbox "Hello"
Msgbox err.number&err.description
try this it will give one "Number and Description" output
you submit in 1st code given by me instead of 6.
If Any Unpredictable Errors/Events occur You cannot guess
where and when they will come. then you should go for the
Recovery Scenario Manager.
Thanks & Regards
Baba.D contact kingring.d@gmail.com
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
How qtp recognizes the object?
How does qtp identify gui object?
hi can any body give me a script for creating a modularity or keyword driven framework..i am working as a qtp tester for 2 months but still i am not exposed to framework in my company
i need qtp tutorial. pls send it to sridhar.k151@g mail.com
How the smart identification is used in real time?Please explain with an example
How reliable are the site's Internet connections required to be? And how does that affect backup system or redundant connection requirements and testing?
What the differences are and best practical application of Object Repository?
Can anyone help.i need total excelsheet operations,shortcuts in testing environment from starting onwards....
How many types of recording modes in qtp? Which will be used when?
Did the scripts need lot of maintenance? If yes, why?
Where you get the run time data table?
How to find operating system information using the qtp script?
what kind of frame work you used in your last project?
What are the views available in quicktest professional?
How does qtp identify objects in the application?