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
Hi How to retrieve data from web element line by line?
Do you know SQL? I know SQL but i don't have any experience...that's it..No more questions ...simply he said " you can leave for the day" ...guys prepare SQL Quires before attending interview in bank of america...
Difference between test object and run time object?
How can you pass value one action to another action?
what are the mandatory properties for a tex boxc (scenario?)
What phases are involved in testing an application in qtp?
How many types of actions are there in quicktest professional?
What is difference between Recording time object identification and Run time (Execution) time.
Write the script to delete the mail which is at 9th,13th and 18th place in INBOX of Gmail ?
Can any body please tell me the steps of keyword driven framework of QTP.
Hi Samrat, Thank u very much, what u said it is right.
How many types of run modes are there in qtp?
How do we handle run-time errors?
How to check bitmap output value?
I used child objects to get the no of weblist present in the weblist.now i need to select the items present in each weblist ?How to do so