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 are the different modes of executing TSL Script

3 Answers  


Have you performed debugging of the scripts?

1 Answers  


hi i am unable to do select the flight in the flight table like list_select_item ("Flight",v_Select_Flight); v_Select_Flight=19072 LON 08:00 AM LAX 10:00 AM AF $161.90 why it is happining pls clarify me doubt

1 Answers  


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

1 Answers  


How do you recognise Active X components in winrunner?

4 Answers   ADITI, Wipro,


list out the some of the exceptions list usually occur while recording and playing the script.

1 Answers  


How do you maintain the document information of the test scripts?

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,


What is contained in the GUI map?

1 Answers  


how to test online application

1 Answers  


How to calculate the edit field length

2 Answers   Wipro,


How can you do debugging in winrunner?

2 Answers   Logica CMG,


Categories