Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 do you make the configuration and mappings permanent?

0 Answers  


where does WR records the information about objects in AUT?

1 Answers  


If winrunner doesn't understand the Text in the Application what you do?

1 Answers   FCG,


What is the definition of function?

1 Answers  


What are the features r there in winrunner 7.6 over winrunner 7.01..B'cos Iam using Winrunner 7.01

2 Answers  


In the system of coordinates used by WinRunner,the origin(0,0 coordinate)is located in the --- screen?

3 Answers   FCG,


what are Recoring modea available in winrunner?

3 Answers   Second Foundation, TCS,


What do you mean by S/W Testing Automation Framework? What are different types of automation framework?

1 Answers  


Hiiiiiiiii This is lavanya.....At present i m working as a MATLAB developer at CMC(A tata enterprise)from about1 year .now i want to move to testing field as a fresher?Is this possible...can anyone give me a suggestion regarding d testing field.....

0 Answers  


How can we stop a automation program in middle of execution time?

3 Answers  


What is the difference between STATIC FUNCTION & STATIC?

2 Answers   Fidelity, Satyam,


How do you find out which is the start up file in winrunner?

0 Answers  


Categories