how can we retrieve ten rows from the data table using

loop concept?

Answer Posted / baba

hello nanda, sreeprasad answer is correct... if you worked
on datatable. you will change settings in test settings in
run tab as run on one iteration only.

then it will take from 1 row to 10 only once.

but he forgot this


Function rcnt(rowcount)

if (rowcount>10) then

for i=1 to 10 step 1

val=datatable.value("column1",dtGlobalSheet)
print "Value of"& i &"row is : "&val
datatable.setnextrow

Next

else

msgbox "rowcount is less than 10, requiement is not _
satisfied"

End If

End Function

rows=datatable.getsheet("Global").getrowcount
msgbox rows

row_cnt=rcnt(rows)
print row_cnt

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of qtp?

574


in data driven testing for performing operations which method is easy from manual test data,keyword view,or from database.and why?

1348


Through array we can execute the testcase how ? give me example

1391


HI I want to know the detials of QTP certifications such as syllabus, study Materil etc. Can any provide me all these details?? my mail ID is krishnuvk@yahoo.com

1527


What is a data driven test in qtp?

576






How QTP support all types of applications (platforms)?

4071


Can anybody let me know how to test the Drag and drop feature of the column in a .net application...eg..i hav to test the drag and drog feature of a table(swftable) in a application..plze help!!

1742


How software automation specialist enter steps in the Expert View?

1670


What is qtpro?

584


What are the factors on which script execution time is dependent?

603


How can you handle exceptions in qtp?

530


What is difference between run time object and test object?

547


What is the difference between rational rose and QTP?

1776


how can i sent QTP results to the Html, notefile ,xl file give me the code using g mail login page

1822


if anyone has idea of the interview procedure in covansys, plz send me a mail?

1519