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
How QTP support all types of applications (platforms)?
Why we load add-ins in qtp?
How to execute a winrunner script in quicktest professional?
If I change the object name in one action will it be updated in all the actions? Or not?
when a test case is written how u test using qtp
please any one can explain the keyword driven framework. with gmail example.
Explain more about the Test Fusion Report of QTP?
What is the significance of “action 0” in qtp?
If the objects hierarchy is changing from build to build, then how you will handle that condition?
What if recovery scenarios is also failed for identify the alert ? (We are handling unexpected popup through recovery scenarios but if still recovery scenarios also failed than what should be the approach)
Give me detailed theritical explanation about keyword driven, hybrid framework, environment variables, hybrid frame work
How to use reporter.report event in qtp ?
you are recording on "WINDOW 1", say it has a link if you click on that, that leads you to "WINDOW 2". If you do any manipulations on "WINDOW 2" that are automatically updated in to "WINDOW 1". But "WINDOW 1" is currently invisible. But the updations in "WINDOW 1" must also be recorded as a script in QTP. The best Example is if you update your resume in JOB STREET portal it actually happens in other window, but the previous window is automatically updated. Now does QTP help you in this types of situations? Any body can answer this question. please..... Siva
in data driven testing for performing operations which method is easy from manual test data,keyword view,or from database.and why?
WHAT IS THE DIFFERENCE BETWEEN QTP SCRIPT AND VB SCRIPT? HOW MUCH PERCENTAGE WE USE IN QTP SCRIPT REAL TIME AND HOW MUCH PERCEN OF VB SCRIPT,,,,,,,