Interview Questions   Tutorials   Discussions   Programs   Videos   

QTP - How we do database testing with qtp using descriptive programming?




279
views
asked marvit October 8, 2014 09:27 AM  

How we do database testing with qtp using descriptive programming?


           

1 Answers



 
answered By hitesh-1045   0  

We can make database connection using the ADO (ActiveX Data objects) Connection Object. The Syntax for making the connection is as follows.

Option Explicit Dim con,rs

Set con=createobject("adodb.connection")

Set rs=createobject("adodb.recordset")

con.open “Connection String”

rs.open "select * from emp",con

Do while not rs.eof Logic

Loop

'Release objects'Release objects Set rs= nothing Set con= nothing

Through this you can do database testing using QTP .

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