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

What id DB Folder? when it will be created and what it consists?

2 Answers   BeBo Technologies,


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

0 Answers  


what is mean block box and white box testing. pls give exact example in the question

2 Answers   HCL,


How would you define a "bug?"

15 Answers   Byte, RMSI,


Hai guys can any one tell me tnhe difference between the product testing and Project testing?

2 Answers  


What happens when the gui map file get loaded?

0 Answers  


Is it possible to run a WinRunner script without using GUI Map file? If yes how?

3 Answers   Relq,


what is the tsl statement for selecting the position of item in list box in winrunner?

4 Answers   MBT,


descriptive program for web application.

0 Answers  


how to write the pass or fail message in winrunner for eg: in QTP we can write like "Reporter.reportEvenr,micDon,"Test Test pass"

2 Answers  


Where to use the public or private functions in your script?

2 Answers  


Where are the expected results will be stored?

1 Answers   Logica CMG,


Categories