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 / 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 |
what is the winrunner framework?
Which of the following, we cannot include in a compiled module? a)check points b)analog statements c)reporting statemnts
How to close the winrunner window from the script itself?what is the code?
what is custom check point? what is the diff.between custom check point and runtime Record check ?
2 Answers Infeneon Technologies,
When Both Developer and Test Engineer conducting testing different?
How do you maintain the document information of the test scripts?
If we send the bug report but the developer didnt understood the bug report then will the tester do?
What is the function in WR for replacing the existed data to blank?
what is the use of generate script that is avaliable 3 places(file settings, tools, object identification)
what is the extension of default,custom check points ?
Explain the purpose of different record methods?
how u can connect database without using any wizard in winrunner?