how can we retrieve ten rows from the data table using loop
concept?
Answers were Sorted based on User's Feedback
Answer / uday kumar. a
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 ? | 18 Yes | 4 No |
Answer / arjuncr
rows=datatable.getrowcount
set globalsheet=datatable.getsheet("global")
for i=1 to rows step 1
datatable.set currentrow(i)
prameterize steps
next
it retrives not only ten rows .even more than 100 rows in a
datatable
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / srikanth
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("Column1","Global")
msgbox(returnvalue)
next
Is This Answer Correct ? | 7 Yes | 8 No |
Hello Everybody, Can anyone tell me that in QTP how to count the number of webelements from the object repository. Please provide the code. Thanks in advance, Gaytri
Hello! i am having two comboboxes.Each having 10 items in it.when i select first item in first combobox,it is not similar in the second combobox.for ex in first combo if it is Hyderabad,in second it should be some chenai or some other item .Write a VBSCRIPT for that?
WHat is Object Identification and Object Spy?
In QTP, What is Global action and Local action?
I want to open a Notepad window without recording a test and I do not want to use System utility Run command as well. How do I do this?
what are SetToProperty, SetROProperty,GetToproperty scripting?
How to use debug tools?
who will distribute the project modules for testing in testing team ?
1.Qtp suppots Unix& linx or not 2why qtp suppots shell script.
how to get column count in datatable
I have a library function , with that function 100 scripts are being called. The library function is changed(something is added) . how do i update all the scripts.
why the smart identification is not there in WinRunner