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.




If the data is stored in Excel sheet(2nd and 3rd), how to access it for Data Driven test; Ex: tab..

Answer / uday kumar. a

Dim excelObj,counter
counter=1
Set excelObj=createobject("Excel.application") 'Excel Object
Set wbObj=excelObj.workbooks.open("c:\demo.xls") 'work bood
object
Set wbs=excelObj.activeworkbook.worksheets("sheet2") 'work
sheet object
while not isempty(excelObj.cells(counter,1))
x=excelObj.cells(counter,1).value
msgbox(x)
counter=counter+1
wend

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More WinRunner Interview Questions

how many checkpoints are provided by WR

3 Answers   Ordain Solutions,


How to integrate automated scripts from testdirector to winrunner scripts?

0 Answers  


what is risk?

0 Answers   TCS,


Can anyone tell me the real usage of compiled modules and user defined functions stating real time example

1 Answers  


How do you create a new expected results in winrunner?

1 Answers   Accenture,


what is the TSL statement to find current systsem date?

2 Answers  


what is the difference between toggle checkpoint and checkpoint?

1 Answers   JVS,


what is the main diff of Qtp9.2 and 9.5 plz tell me

5 Answers   HCL, IBM,


how many options are provided in WR login screen

1 Answers  


The title of the window consists of date and time.What is the regular expression to recognize the window as unique?

0 Answers  


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,


in which file Data of a Table is stored for further analysis

1 Answers  


Categories