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.
Answer Posted / 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 View All Answers
What is the purpose of a gui spy?
What is a checkpoint and what are different types of checkpoints?
How do you handle pop-up exceptions?
Explain the purpose of gui map configuration?
Name the different types of checkpoints?
What is the purpose of regexp_label property?
What are data driven tests?
Explain the purpose of gui spy?
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
What different actions are performed by find and show button?
Dear all i am new to testing my company using vb.net and we are developing web based application. How i can test those application with winrunner if any one have some good tutorial or link kindly provide thanks u.
What is the disadvantage of loading the GUI maps through start up scripts?
Which are default codes winrunner generates when we start the application?
Explain the use of test director software?
How to integrate automated scripts from testdirector to winrunner scripts?