Data is there in two excel sheets .. how ur going to retrive
the data in winrunner thru script.. write down the script?

Answers were Sorted based on User's Feedback



Data is there in two excel sheets .. how ur going to retrive the data in winrunner thru script.. wr..

Answer / suneel reddy

use data driven test script

ddt commands

Is This Answer Correct ?    1 Yes 0 No

Data is there in two excel sheets .. how ur going to retrive the data in winrunner thru script.. wr..

Answer / uday kumar. a

Hi,

As per the question, Excel sheets means In an Excel file we
have multiple sheets(Sheet1, sheet2 etc...)
Here i can access the sheet1 data, but WR does not provide
any functions, so that we can access sheet2.

There is no direct option to access sheet2 in Excel file

Is This Answer Correct ?    0 Yes 0 No

Data is there in two excel sheets .. how ur going to retrive the data in winrunner thru script.. wr..

Answer / deepak ethirajan

First link the data tables to an appropriate table name.
eg:-
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>)

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More WinRunner Interview Questions

I am new to testing. Can anyone send a sample test script in which variables are used to automate the flight login page.

1 Answers  


KINDLY PROVIDE TEST CASES ON YAHOO MESSENGER

0 Answers  


what is the winrunner framework or architecture?

2 Answers   IBM,


If u press a push button in an application the winrunner generates tsl statement like button_press(..) i.e the class name of the object and the event on that object but Why if u click a static text in an application the winrunner generates tsl statemen like win_mouse_click rather than the statement with combination of classname and event..??

2 Answers   Accenture,


If the data is stored in Excel sheet(2nd and 3rd), how to access it for Data Driven test; Ex: table = "c:\demo.xls" How to access 2nd or 3rd sheet data id demo.xls flie.

1 Answers   MBT,


What is the automation process in winrunner?

3 Answers   Second Foundation,


what is qtp licence

0 Answers  


What is a checkpoint and what are different types of checkpoints?

0 Answers  


The title of the window consists of Date and Time.Tell me the Regular Expression to recognise that window as unique?

1 Answers   FCG,


Is it possible to place a Logical name in a data table and can use that logical name in the script? Tell me with mentioning function names..?

1 Answers   Accenture,


How do you create a new expected results in winrunner?

1 Answers   Accenture,


What are the functions generate when u use GUI Check point?give me some of ones?

4 Answers   Second Foundation,


Categories