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
What are the advantages of qtp?
in data driven testing for performing operations which method is easy from manual test data,keyword view,or from database.and why?
Through array we can execute the testcase how ? give me example
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
What is a data driven test in qtp?
How QTP support all types of applications (platforms)?
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!!
How software automation specialist enter steps in the Expert View?
What is qtpro?
What are the factors on which script execution time is dependent?
How can you handle exceptions in qtp?
What is difference between run time object and test object?
What is the difference between rational rose and QTP?
how can i sent QTP results to the Html, notefile ,xl file give me the code using g mail login page
if anyone has idea of the interview procedure in covansys, plz send me a mail?