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 / veeranki naveen goud

set dtsheet1 = datatable.GetSheet(1)
rcount = dtsheet1.GetRowCount
ccount = dtsheet1.GetParameterCount
For i = 1 to rcount step 2
dtsheet1.SetCurrentRow i
For j =1 to ccount
n = dtsheet1.GetParameter(j).ValueByRow
(i)
msgbox n
Next
Next

Is This Answer Correct ?    13 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are benefits of qtp?

575


How will you handle java tree in qtp?

621


What are the various types of Actions in UFT?

585


What are table and db checkpoints?

586


What is exact meaning of Database Checkpoint in QTP 9.2 and what are the different types of the database check points?

2260






Which is the best QTP training institute in Delhi/NCR region and what is the approximate fee for QTP course (Basics and Advanced)

1374


How many types of recording modes in qtp?

581


What is the difference between run time object and test object?

571


what is the difference between the modular framework and datadriven frame work

1906


What is fragmentation and paging?

1585


Please provide specific examples of advanced/creative usage of QTP, including how impact & benefits for your project

1633


Whats the realtime QTP testing process

1988


What is the difference between call to existing action and copy of an action?

598


what difference between runtime object and text object and what property they have. whether they have same properties or different properties.

1701


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

3435