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
write a script to verify links on any web page by using descriptive method by creating a description object (give a filter condition only link) ... need to verify expected like name by reading
How to use debug tools?
How to create runtime property for an object?
How do know the number of browsers opened?
On the website, the protocol has been changed https: to https what you will do? Tell me your approach?
what is the difference between the modular framework and datadriven frame work
please post the interview questions for QA position in FACTSET
Shall we add Local Repository to shared object repository,if yes,how we add
How do I lauch my test website using code from qtp in different environmet, uat and PPTE?
Does Low-level recording capture mouse movements?
In a flight window we have to enter the name and meal request for every passenger.In that window if we give Total passengers=1 then the Psngr1 name field and psngr1 meal request field will reflects.if we give Total passengers=2 then Psngr1 name field and psngr1 meal request field,Psngr2 name field and psngr2 meal request field and so on. how we can handle this scenerio thru Descriptive programming?
what type of values given to objects. EX::Set oBrowser=Description.Create oBrowser(“micclass”).Value=”Browser”
Explain object spy in qtp.
what is the difference between IE & Netscape in web testing on a log in page
What is the use of "New Property" in "Add properties" of testobject properties in object repository. How can i use "New properties" while writing scripts if i have assign some values to the testobject properties Can anyone help me? plz