how can we retrieve ten rows from the data table using

loop concept?

Answer Posted / sreeprasad

Assume "Column1" is my column name in the Global Data

table, then use this code:

for i=1 to 10

datatable.setcurrentrow(i)

returnvalue=datatable.value("Column1","Global")

msgbox(returnvalue)

next

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

iam working in QTP for 2+ of exp if i attend the interview what r questions asked in perfomence testing{loadrunner} ? pls any one can say answer to this question?

1605


What are the flaws in water fall model and how to overcome it?

560


I am trying to install QTP 9.5 but i am getting error message saying that ("Path is \QuickTest Professional\bin\vb_init.exe") vb_init.exe file is not find. can anybody give me the advise what to do ?

1765


What are the trigger events in qtp?

573


how to fetch the values from grid? & qtp recogniges that grid as a webelement? what u do?

1908






Hi All, How to get repeated word in string . Thanks Balaji

934


Can any one brief some detail on how the shared and action object repository utilized/implemented in a real time project. I already know how to make shared object repositor by saving OR as .tsr extension..I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thanks

1899


How to open a new test using quicktest professional (qtp)?

527


explain abt dyanamic changing object with example?

1899


How does quicktest professional identifies the object in the application?

553


Hi could some one explan what is the use of the function Defination generator, And how to use the function defination generator.. Explan with the example..

1350


whenever U using QTP,Test Director, Why we using separate Bug tracking tool?

1566


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

582


when I try to run below script in QTP "totalPages" value is 2. But i am getting error message (Type mismatch: 'totalPages' Line (): "For i=1 to totalPages".) totalPages=Browser("Name:=User").Page("Title:=User").WebElem ent("innertext:=of.*").GetROProperty("InnerText") msgbox totalPages For i=1 to totalPages rnum=Browser("Name:=User").Page("Title:=User").WebTa ble("column names:=User Name;ID;Last Name;First Name").GetRowWithCellText("store4") If rnum>0 Then r=rnum Exit for End If Browser("Name:=User").Page("Title:=User").WebElement ("html tag:=A","x:=471").Click MsgBox "Exit" Next

3274


How to create Reusable and Multiple Actions?

1709