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 is the extension of QTP local Repository? If it is .mtr then what is .bdb extension stands for?
Does QTP record on Objects created on XWindows Environment?
What do you mean by checkpoints in qtp?
If I change the property value at runtime is it effect is object repository?
Where should i find checkpoint and virtual objects's Object properties and values in the QTP 9.2 Means where checkpoints or virtual objects related data will store If i want to get the runtime object properties how can i use Getroproperties on Checkpoints
I want to know what are QTP functons and what are VB script functions. What is the difference between them.When we have to use these functions.
To which environments does quicktest professional (qtp) supports?
How to add synchronisation points in qtp?
Hi Samrat, Thank u very much, what u said it is right.
How to handle the exceptions using recovery secnario manager in quicktest professional?
Have you used xml check point in your project? How?
Hi friends did any budy attend accenture system test for qtp? if any budy pls drop questions.not only accenture any other mnc company which you attended system test(QTP)?it may helpful to others also
How the exception handling can be done using quicktest professional?
How will you find the current time of the remote machine using QTP script?
What is 'sleep' in sync point?