How to handle exception when data table is not available in
local host system or path is not correct(explain statement
with example)
Answer Posted / shyam prasad
Dim Dsn_conn,rs
Set objConnection=Createobject("ADODB.Connection")
Dsn_conn= "DSN=QT_Flight32;DBQ=C:\Program Files\Mercury
Interactive\QuickTest
Professional\samples\flight\app\flight32.mdb;Driver=C:\WINNT
\system32\odbcjt32.dll;DriverId=281;FIL=MS
Access;MaxBufferSize=2048;PageTimeout=5;"
objConnection.Open(Dsn_conn)
Set rs=CreateObject("ADODB.RecordSet")
Set rs=objconnection.execute(" select flight_Number from
Flights where flight_Number>20330") (Instead of this
statement search the table u will get it
)
rs.MoveFirst
While Not rs.EOF
Msgbox rs.fields.item("flight_Number")
rs.movenext
Wend
Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What are the major/ important methods, functions in QTP we use realtime testing
How many types of recording facility are available in quicktest professional (qtp)?
Explain the differences between table and db checkpoints?
How u will do versioning in QTP?
How to use descriptive programming?
hi all can any body explain how to write the script for finding the mandatory fields which are having [red Astrik sign (*)]
Explain advantages and disadvantages kdf?
Pls can anybody send me the Recent Technical and Interview Questions Which were asked in IBM(QTP)Automation PLZZZZZZZZZ
For example you are checking bit map check point before coming to the results. How can you say it is passed? Or failed? Anyways?
i have doubt suppose iam purly working in manual, when i will get work to do on sql and performence testing? pls any one clarify doubt?
can any boby tell me what is method or steps to connect the remote desk top by using QTP 9.2 version?
How to use transactions in qtp?
What is regular expression?
Explain advantages and disadvantages of ddf?
What are the different ways to invoke an application using QTP?