Please explain me in detail! How to handle runtime errors
in QTP useing recovery senario or with out scenario

Answer Posted / sathish reddy

Hi friends


We can also Stop the error by using below lines

MsgBox ("Error # " & CStr(Err.Number) & " " &
Err.Description)'this lines given the error number and
Description

Err.Clear 'this will clear the Error

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I open a EXCEL file from QTP Resultviewer with reporter.ReportEvent function call. Example: Test files for details click "here". And clicking "Here" in the resultviewer will open a local EXCEL FILE.

1813


What are the different types of recording modes?

534


What ate the Technologies supported by QTP?

648


how to i add the values using the check points property?( i.e valid data(for valid data it's giving the footer message:value is added) and for invalid data: special chars, spaces,Duplicates and null values (in my page when ever we enter special chars, spaces and null values, it's giving the proper warning message and for Duplicates it's giving the footer message:"value already exists)?

1422


I have written a code to fetch values fro access db and place in the fields. Iam using GetROProperty to fetch runtime values. Now i want to add runtime values to the access db in field v3. please help me. Its not writting in the db. Option explicit Dim con,rs,db,c Set con=createobject("adodb.connection") Set rs=createobject("adodb.recordset") con.Open "Driver={Microsoft Access Driver (*.mdb)};dbq=D:\Sales.mdb" rs.open "select * from tax",con Do while not rs.eof Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("incost").Set rs.fields("v1") Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("intax").Set rs.fields("v2") c=Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("outtax").GetROProperty("value") rs.MoveNext print c Loop Do while not rs.EOF rs.EditMode rs.Fields("v3").Value="3" rs.Update rs.MoveNext Loop Set rs=nothing Set con=nothing

1485






What is object repository in qtp?

559


Which functionalities of QTP used in banking project?

1924


i need code for how to click on particular mail in utlook mail box .its urjent Thank You Balaji

1579


How will you check a web application for broken links using qtp?

550


What is exact meaning of Database Checkpoint in QTP 9.2 and what are the different types of the database check points?

2267


Client is able to provide budget..he want you to choose the automation tool for the web application? which one you will select ? QTP or Selenium ? what are the reasons?

1229


What are the data types in qtp?

667


what are the frame work models of qtp?which frame work you follow in your company?and explain it process?

1963


Can QTP be used for GUI testing ?, We are using Java with MySQL and Operating system is Linux. We are NOT using the web.

1946


How to test results for qtp ?

787