Interview Questions   Tutorials   Discussions   Programs   Videos   

WinRunner - Data is there in two excel sheets how to retrieve the data in win runner through script write down the script?




305
views
asked mar August 10, 2014 08:41 AM  

Data is there in two excel sheets how to retrieve the data in win runner through script write down the script?


           

1 Answers



 
answered By shyam   0  
By using data driven test script and data driven commands we can retrieve the data in winrunner.

ddt commands 
Table1= "C:\\excel1.xls";
Table2= "C:\\excel2.xls";
use the ddt_open command to open the data tables.
ddt_open(Table1,.....)
ddt_open(Table2,.....)
Now, you can access the data from either Table1 or Table2
by the table name.
eg:
V1= ddt_val(Table1,<parameter1>)
V2= ddt_val(Table2,<parameter2>) 
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