Interview Questions   Tutorials   Discussions   Programs   Videos   

QTP - How you do the back end testing in QTP?




226
views
asked marvit August 20, 2014 04:18 AM  

How you do the back end testing in QTP?


           

1 Answers



 
answered By Dharma   0  
  We can performing the data base testing through qtp we 've to follow the following process.
'create  a object for  database  connetion
set conn=createobject("adodb.connection")

'create a object for recodset
set rs=createobject("adodb.recordset")
here adodb stands for activx dataobject database
'pass the provider
conn.provider="providername"
for ms-acess- microsoft.jet.oledb.4.0
for oracle msdaora.1
'open your database
conn.open "C:\programfiles\hp\quicktestprofessional\samples\flight32.mdb"
open record set write the query
rs.open "select *form orders",con
while not rs.eof
msgbox rs(0)
rs.movenext
wend
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert