1.

How To Check Data Base Connection Of Script In Winrunner?

Answer»

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");
Through this script we can connect to the database and also we can FETCH the records.

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");
Through this script we can connect to the database and also we can fetch the records.



Discussion

No Comment Found