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

How can I check if a environment variable exist or not?

543


Without using gui map editor we can recognize the application in winrunner ?

609


Explain the concept of how quicktest professional (qtp) identifies object?

578


In qtp, how you can exit for loop?

529


What is the use of sendkeys and what are send keys

1956






How to add synchronisation points in qtp?

580


wht type of User defined functions or Java Releated functions Do we write in VB scripting

1381


Can any one brief some detail on how the shared and action object repository utilized/implemented in a real time project. I already know how to make shared object repositor by saving OR as .tsr extension..I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thanks

1899


How does quicktest professional (qtp) identifies the object in the application?

583


1--How many functions u develop 2--What is an array 3-- where is ur server 4--U involved in unit testing 5--how ur test the background colour using QTP

1547


How to add verification steps to tests?

9130


If the weblist is identified as webelement,and by clicking on webelement if the values are displayed,and if the values the values also identified as webelement.then how to fetch the values through script?

4698


To retrive the test data which tool vl use and whats basis u vl write test data? its urgent

1448


Explain the Different types of QTP test assets and their extensions?

607


Can any one tell me about "Mapping Repository Parameter Values" and why we use it....??How to use it???Please, tell the preconditions also...........???? Thanks in Advance

1503