Prepare for your Next Interview
This is a discussion on Create a table in excel within the WinRunner forums, part of the Software Testing category; How want to create a table in excel through which winrunner reads the data according to the parameters...
|
|||
|
Create a table in excel
How want to create a table in excel through which winrunner reads the data according to the parameters
|
| The Following 2 Users Say Thank You to demo676 For This Useful Post: | ||
| Sponsored Links |
|
|||
|
Re: Create a table in excel
Hi,
Firstly create a Excel sheet with required Column names and specify the data required under it. Data-driven tests in Winrunner as basically carried out using the ddt statements. The following steps would provide a guideline as to how to read data from an Excel file and parameterize your script - ------------------------Start of Code--------------------------- Datatbl = ddt_Open("Path of Excel File", ddt_mode_read); ddt_get_row_count(Datatbl,rowcount); ## Rowcount is the output variable where number of Rows is stored. for(i=0;i ddt_next_row; ## ParameterName would be the Column Name in Excel sheet under which your data would be stored. -------------------------End of Code----------------------------- You could also the Data-Driver wizard to carry out parameterization. Select the Excel file you have created, map the parameters to the columns in the Excel. It should generate the same code listed as above. Cheers....
__________________
Regards, V.Umesh Krishnan QA Consultant |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to create an index on a column while creating table | maruduri | Oracle | 2 | 08-09-2007 03:50 AM |
| Create same table | JobHelper | Database General | 5 | 08-07-2007 01:03 PM |
| Can you create internal table dynamically | Geek_Guest | SAP R/3 | 0 | 07-19-2007 09:55 AM |
| How can I execute a file which include 'create table ' statement | Geek_Guest | Oracle | 1 | 07-17-2007 01:33 AM |
| Create an index on table containg BLOB type | vidya_kr | Oracle | 0 | 04-24-2007 02:33 AM |