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

Can we run WinRunner scripts on the backend?

4 Answers  


what is the key combination to terminate script execution

2 Answers  


What is T_Exit and T_return?

4 Answers   AZTEC,


What is database check points? how many types are there?Explain?

5 Answers   Second Foundation,


The GUI MAp Editor or Rapid Fire test are not learning the GUI of any window or any object..The pointer conevrts to hand and everthing hangs till i don't press Ctrl+Alt+Del. Help me!!!

1 Answers  


how can you explain your Real Estate Project in front of interviewer..? please step by step......

0 Answers  


How do you do digital signature test in winrunner?

7 Answers  


1,You have scripts in Qtp8.2 and some scripts 9.0 ..how to handle ?

2 Answers   Ness Technologies,


How many exceptions are there in winrunner and what are they?

1 Answers   Tomax,


In the Object properties MSW id,MSWclass will appear..what exactly MSW means..?

2 Answers  


what is the gui map & gui map file in winrunner?

2 Answers   MBT,


How to set a value in to a data table from the script in winrunner?

1 Answers   Accenture,


Categories