How to write the script for database connection then doing parametrization in the same script.

Showing Answers 1 - 6 of 6 Answers

kishore

  • Mar 8th, 2007
 

hi,

   to connect to a database u require a connection
   
   dim con,rs
    set con=createobject("adodb.connection")

     set rs=createobject("adodb.recordset")

   con.open "dsn=..........;user id=........,password;server name=......;database=........"

    rs.open "select empno from emp",con
   empid=rs(0)
   browser("google").page("google").webradiogroup("group1").select empid
   con.close
rs.close

  Was this answer useful?  Yes

papayamilkshake

  • Sep 21st, 2007
 

Question back to you: Why is there a need to write/parameterize the database connections?  Vugen is a record and playback technology.  You don't really need to code the entire script unless there are some constraints and limitations.  My suggestion is to record based on the protocol and parameterize fromt the recorded scripts.

-papayamilkshake
LoadRunner TnT @ loadrunnertnt . com

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions