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
can any one please tell me which is the best institute in Bangalore to learn QA (crash course)? Thanks
I used child objects to get the no of weblist present in the weblist.now i need to select the items present in each weblist ?How to do so
When ‘option explicit’ keyword is used in qtp?
How to suppress warnings from the test results page?
explain abt dyanamic changing object with example?
How to associate function library at a run time?
What is QTP scenario.
How do you compare the structure of 2 tables in database and check whether they are similar using qtp.
Which HTML specification will be adhered to? How strictly? What variations will be allowed for targeted browsers?
What do you mean by checkpoints in qtp?
What are the types of environment variables in qtp?
How to open a new test using quicktest professional (qtp)?
I want to test my vb.net solution file using qtp. Does Qtp test only .exe file?
Hi Friends, Can anyone help me out in this one? In QTP, I am using Data Driver and want to parameterise multiple values (say 3 values ) for a field. How can I do it using Data Driver wizard? Plz mention it step-by-step. In the end after doing the needful, on opening the Data Driver window, how can I get number (i.e. 3) in the Parameterised column for that particualr value? Thanks a lot in advance.
What is data driver in qtp? Where we use it?