Answer Posted / ravi
QTP supports interaction with Database using ADODB.
Set con = createobject("ADODB.Connection")
Set rs = createobject("ADODB.Recordset")
'Create DSN(DataSourceName) for your database and specify
the DSN here
'You can also establish connection using Provider name
con.open "DSN=MyDsn;UID=ravi;PWD=sample123"
con.execute "Insert into emp values(2500, 'Ravi')"
'Retrieve data from database
rs.open "select * from emp", con
while not rs.eof
msgbox "ID = " & rs(0) & " Name = " & rs(1)
rs.movenext
wend
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the different properties of an web object
Where is the Bitmap checkpoint information stored?
how to test use the quality control .how to verify the image verification
How do you capture tooltip using QTP?
Mention the different actions types of qtp.
what is profile tool?
What is the difference between a Function and Procedure in QTP?
Explain sub procedure of vbscript.
How is UFT 11.5 version different from UFT 12.0?
breef description of batch testing ?
How to find the length of the string in qtp?
To which environments does quicktest professional (qtp) supports?
How to find the difference between 2 dates in qtp?
what are the frame work models of qtp?which frame work you follow in your company?and explain it process?
Hi ,Can any one pleas explain how to test splash objects using QTP?