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

1.Can we use multiple excel sheets in winrunner? 2.What is the templet of writing test cases? 3.Which bug tracking tool u r using in u'r company? 4.Can any one give me real time test case format? My mail id id shobha.mar28@gmail.com

3 Answers   Cognizant, Infosys, Kaktus Info Solutions,


What is debug mode in Winrunner?

0 Answers  


What are the different modes of recording in winrunner?

0 Answers  


what is the difference between data driven test(ddt) and parametrization

7 Answers   Agile Software, CTS,


how do you analyze the properties associated with object

1 Answers  






How do you do digital signature test in winrunner?

7 Answers  


For What are the browsers that WinRunner can Compatible? (I want Versions Like IE5.0 etc;)

3 Answers  


How to do text matching?

0 Answers  


For my web Application I am recording website by WR. but the fuctions are displaying normal recorded fun. such as set_window...etc. eventhough i selected web add-in at start up WR. how to use web functions? such as web_link_click.... pls. guide

0 Answers   Wipro,


What is the extension of gui map file?

0 Answers  


How will u find Automation Test cases and how to find regression test cases?

4 Answers   TCS,


what are types of black box and white box testing?

1 Answers  


Categories