1. how can you handle exceptions without using recovery
scenario?

Answers were Sorted based on User's Feedback



1. how can you handle exceptions without using recovery scenario?..

Answer / narender reddy alala

by using "on error resume next" we can handle exceptions

Is This Answer Correct ?    8 Yes 0 No

1. how can you handle exceptions without using recovery scenario?..

Answer / 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

1. how can you handle exceptions without using recovery scenario?..

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

1. how can you handle exceptions without using recovery scenario?..

Answer / dinesh

using the optionalstep method we can handle the error.

Is This Answer Correct ?    0 Yes 0 No

1. how can you handle exceptions without using recovery scenario?..

Answer / vengi

by using on resume next

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More QTP Interview Questions

In QTP whether is it possible to call a function from one action to another action?

1 Answers  


What are the general steps involved in the data driven framework?

0 Answers  


can anyone please tell me which is the best institute for learning QTP and Automation Testing tools in hyderabad with realtime examples and scenarios...I heard about many institutes in Ammerpet hyderabad i.e Suresh Reddy's Smart Solutions, Ashwin Palaparthi's Tech Teach,SUNNYSOFT, SITE institute, I-VINTAGE, siritechnologies and sriven institute..pls suggest me which to choose for learning QTP....Which institute has fasttrack option?

2 Answers  


how to reverse a string with out using string or predefined function,ex:string is " i love india". the output should be like this "i evol aidni"

3 Answers   Aspire,


when I was doing the web testing with QTP using with standard checkpoint the Object selection -checkpoint properties dialog box not displaying pages and links hierarchical order. Could you please tell me. thanks

0 Answers  






How u call functions in QTP Function to calculate the length of characters in a wor

2 Answers  


How to add synchronisation points in qtp?

0 Answers  


How to remove associated function library?

0 Answers  


PLS REAL TIMERS WRITE THE ANS FOR THIS? WHICH SCRIPT IS USED IN REAL TIME NOW A DAYS 1)SHARED REPOSITORY BASED SCRIPT 2)DESCRIPTIVE PROGRAMMING BASED SCRIPT?

1 Answers  


how many script you will wright in a year ? i told it's depends on the proj..and 'n.no of ... but he forced me to tell some num. or avg .....how many i suppose to tell..??and do a favor per day how many script don't thing it's repeated question or common ...help me post a ans...thanks for advance

1 Answers   HCL,


Does QTP10 supports Windows 7OS +IE 9 combination? Which is the preffered combination ,Plz let me know?

0 Answers  


How to remove the associated function library?

0 Answers  


Categories