Interview Questions   Tutorials   Discussions   Programs   Videos   

QTP - How to import all rows of excel sheet to QTP during runtime?




278
views
asked marvit August 13, 2014 08:51 AM  

How to import all rows of excel sheet to QTP during runtime?


           

1 Answers



 
answered By Dharma   0  
This Code might be helpful to you

DataTable.Import("E:\expertsfollow\QTP
Training\student.xls")
datatable.GetSheet(1)
rowCount=datatable.GetRowCount
 
For i=1 to rowCount
datatable.SetCurrentRow(i)
val=datatable.Value("name","age")
msgbox(val)
Next

flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert