1. how can you handle exceptions without using recovery
scenario?
Answers were Sorted based on User's Feedback
Answer / narender reddy alala
by using "on error resume next" we can handle exceptions
| Is This Answer Correct ? | 8 Yes | 0 No |
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 |
Answer / pankaj sharma
We can also use cases if the points where error is suppose
to throw .
like
if Err.Number = 12 then
systemutil.closeprocessbyname "processname"
call function()
end if
To discuss more about this or some other topic please visit
http://quality2deliver.blogspot.com/
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / dinesh
using the optionalstep method we can handle the error.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is ‘object spy’ and what is the function of object spy in qtp?
Hi All, I have QTP installed on my machine but the application under test is on remote machine. I need to automate the scenarios which consist of automatically enter the remote machine through IP address ,record the application in remote machine and run it also when played. Can some one tell how to record the application in remote machine.
setroproperty and getroproperty difference
what is the abbrivation of .mtr in action reposirtory?
Could any one suggest web site links to learning VB Script for QTP purpose??
wht is Manual Testing Frame work. Pls anybody can give appropriate answers
what is the frame work your using in automation testing
I AM NEW IN QTP,PLZ TELL ME ANY BOOKS FOR QTP, MY COMPANY IS QTP,SO I LEARN QTP,PLZ ANYBUDY HELP ME
how to reverse the string without using bultin functions(i.e mean mid,len ,reverse functions)
Hi All, I am a beginner in QTP and have understood the basics of QTP by going through tutorial. I am trying to Automate a HRMIS application, What is the right approach to Automate this application. Kindly answer. Thanks in advance
Hi, i have a string like "INDIA". I need to display this string vertically in Msgbox?
Could any one tell me "How can i recognize my cursor position using QTP 9.2" Give me a scripts for this