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

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

1489


How to use debug tools?

2198


How to create runtime property for an object?

1448


How do know the number of browsers opened?

627


On the website, the protocol has been changed https: to https what you will do? Tell me your approach?

582






what is the difference between the modular framework and datadriven frame work

1909


please post the interview questions for QA position in FACTSET

3950


Shall we add Local Repository to shared object repository,if yes,how we add

5688


How do I lauch my test website using code from qtp in different environmet, uat and PPTE?

1457


Does Low-level recording capture mouse movements?

582


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?

1442


what type of values given to objects. EX::Set oBrowser=Description.Create oBrowser(“micclass”).Value=”Browser”

1489


Explain object spy in qtp.

583


what is the difference between IE & Netscape in web testing on a log in page

1790


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

1475