How to handle exception when data table is not available in
local host system or path is not correct(explain statement
with example)
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 |
Explain the Different types of QTP test assets and their extensions?
How comfortable are you in VB scripting?
what is the difference between development and testing
What is the difference between byref and byval in qtp?
What is the use of "Step Generator" in QTP??for what purpose we are using??explain with an example
How to covert a String to an integer?
Did you find anything in your project that QTP proved inefficient to perform?
what is test scheduleling?
How can you write the scripts that operate on different objects depending on run-time information?
how do we add a new sheet to data table in QTP?
How can we disable popup blocker? (I think it means when we get a pop up messge(its error) how we wil disable that one with out interrupting normal process)
please send detail navigation for merging of object ripositories in QTP 8.2
3 Answers Infosys, Ordain Solutions,