how can i impliment error handling in QTP?

Answers were Sorted based on User's Feedback



how can i impliment error handling in QTP?..

Answer / ramakrishna

recovery senario

Is This Answer Correct ?    5 Yes 0 No

how can i impliment error handling in QTP?..

Answer / deepak k

Use "OnError Property" to hundling using following Error
numbers

Error Number Description
429 ActiveX component can't create object
507 An exception occurred
449 Argument not optional
17 Can't perform requested operation
430 Class doesn't support Automation
506 Class not defined
11 Division by zero
48 Error in loading DLL
5020 Expected ')' in regular expression
5019 Expected ']' in regular expression
432 File name or class name not found during Automation
operation
92 For loop not initialized
5008 Illegal assignment
51 Internal error
505 Invalid or unqualified reference
481 Invalid picture
5 Invalid procedure call or argument
5021 Invalid range in character set
94 Invalid use of Null
448 Named argument not found
447 Object doesn't support current locale setting
445 Object doesn't support this action
438 Object doesn't support this property or method
451 Object not a collection
504 Object not safe for creating
503 Object not safe for initializing
502 Object not safe for scripting
424 Object required
91 Object variable not set
7 Out of Memory
28 Out of stack space
14 Out of string space
6 Overflow
35 Sub or function not defined
9 Subscript out of range
5017 Syntax error in regular expression
462 The remote server machine does not exist or is
unavailable
10 This array is fixed or temporarily locked
13 Type mismatch
5018 Unexpected quantifier
500 Variable is undefined
458 Variable uses an Automation type not supported in
VBScript
450 Wrong number of arguments or invalid property
assignment

Is This Answer Correct ?    5 Yes 0 No

how can i impliment error handling in QTP?..

Answer / supraja

By using Recovery scenario manager we can handle Errors
and using script also we can hadle errors and popups and
using ON ERROR RESUME NEXT we can just skip the errors we
can Recover the erros.

Is This Answer Correct ?    3 Yes 0 No

how can i impliment error handling in QTP?..

Answer / uma

By using Exception Handling We can handle the errors. The EH
will have three types 1. Popup Handle 2. TSL Handle
3. Object Handle.

Is This Answer Correct ?    2 Yes 1 No

how can i impliment error handling in QTP?..

Answer / ramakrishna

recovery seniaros
and virtuval object

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More QTP Interview Questions

Do we get any issues if we run the testscript on different browsers? what are the options we need to st in QTP?

2 Answers   BirlaSoft,


how do you done Data-driven test using MS-Word Instead of DataTable

3 Answers   IBM,


what is keyword driven testing

2 Answers  


what is the use of automation objective model?where is used? plz tell me

2 Answers  


What is LoadRunner?

1 Answers   Crea,






Hi. plz expalin abouit SetToProperty, SetRoProperty, GetToProperty, GetRoProperty,GetToPrperties. with examples.

6 Answers  


I recorded a Web App with a Oracle backend using QTP 9.5 and for some reason the scripts don't play back> What am I missing at this point. I recorded the same Apps under Sybase and they work great. This is Oracle 10g. Why won't my scripts play back.

0 Answers  


can any one tell me what is syntax error in line msgexist=Browser("title:=Gmail: Email.*").Page( "title:=Gmail: Email .*").WebElement(innertext=&msg).exist 'code ************** Call login("lal="," " ) wait(5) Call errormsg("Invalid email address. [?]" ) Function errormsg(msg) msgexist=Browser("title:=Gmail: Email.*").Page( "title:=Gmail: Email .*").WebElement(innertext=&msg).exist if msgexist then Reporter.ReportEvent micPass,"enter valid username or pwd ",msg else Reporter.ReportEvent micFail, "entered valid uname and pwd",msg end if End Function

5 Answers  


Pls can anyone give me the descriptive programing script to find the number of edit boxes in a login window in flights reservation (windows application only not web). Pls anyone, very urgent

1 Answers  


Give me the Example of standard check point and text check point with syntax?

3 Answers   IMI Soft, IMI Soft Engineering,


what is the script for keyword driven framework in real time?plz its urgent

1 Answers   Accenture, CTS,


How can we extract data like "Details","Result","Time" from the 'Run Error' result generated in QTP after run time errors are generated during a run & import the details etc...into excel sheet

0 Answers  


Categories