QTP Data Table Having 10 records with 10 to 15 fields(lets
say).now i want to get alternative records from datatable.pls
can any one answer it?

Answer Posted / pushkar1206

datatable.AddSheet"pushkar"
datatable.ImportSheet "C:UserspushkarDesktopBook1.xls","Sheet1","pushkar"
rw=datatable.GetSheet("pushkar").GetRowCount
clm=datatable.GetSheet("pushkar").GetParameterCount
For i=1 to rw step 2
For j=1 to clm
a=datatable.GetSheet("pushkar").GetParameter(j).valuebyrow(i)
msgbox a
Next
Next

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain qtp(quick test professional)?

659


What is checkpoints for qtp?

629


Explain the concept of object repository?

636


Is any limitation to xml checkpoints?

654


Which recording modes need more memory?

664






what QTP Options do you know?

3018


How to run an integrated test scenario using Multiple Actions? How to use the QTP Step Generator?

3557


Explain more about the Test Fusion Report of QTP?

690


Differences between text and test area checkpoints?

662


What are the differences between table and db checkpoints?

628


Why qtp the best testing tool?

650


Discuss quicktest professional environment?

661


Can we use index on view?

1711


Explain data driven framework?

660


What is fragmentation and paging?

1674