How to check data base connection of script in winrunner?

Showing Answers 1 - 3 of 3 Answers

amarjeet kaur

  • Dec 28th, 2005
 

For verifying database content, columns and rows, database checkpoints are used.Database checkpoints are categorized into:

Default database checkpoint, Custom database checkpoint and Runtime record database checkpoint

  Was this answer useful?  Yes

chaitanmd

  • Dec 29th, 2005
 

Hi this is Chaitanya.Mohammad

To connect to the database by using Winrunner script

is, at first we have to find out the DSN name  

db_connect ("session name","data source name");

db_execute_query("session name","query",count);

generate for loop  for(i=1;i<=count;i++)

db_get_row("session name",variable);

printf(variable);

db_disconnect("session name");

Thru this script we can connect to the database and also we can fetch the records

With regards

Chaitanya.Mohammad

 

 

 

 


 

  Was this answer useful?  Yes

Uday Kumar.A

  • Jan 4th, 2006
 

rc=db_connect("s1","driver=sql server; server=papdsr05; database=rbb1; uid=sa;pwd=sa");

if(rc!=E_OK)
  pause("Cannot establish connectin with the DB");

  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