As you can see, after the video i posted the code.

You have to use the same code.

A pseudo code is:
datatable.getsheet("Your sheet id")
rowCount=Datatable.getrowcount
for i=1 to rowCount
 print datatable.value("Your ColumnId","Your SheetId")
next

Thanks & Regards,
Uday
QTP videos <http://qtpftvideos.blogspot.com>

On Monday, 7 January 2013 21:35:58 UTC+5:30, pavani b wrote:
>
> Thank you uday
>
> can u write complete logic for second qery
>
>
> On Saturday, January 5, 2013 12:05:38 PM UTC+5:30, udayanem wrote:
>>
>> Hi Pavani,
>>
>> This is a QTP Setting.
>>
>> Click File Menu -> Settings -> Run tab.
>>
>> For your 1st question,
>> If "run on all rows" option is selected then, your script is executed as 
>> many no of rows of data existing in your global table.
>> In your case, 2 rows of data is existing, so the whole script is executed 
>> 2 times.
>>
>> If "run one iteration only" option is selected, then the script is 
>> executed only once.
>>
>> Same as the third option:
>> Say if you have 10 rows of data and you would like to execute 1-5 rows, 
>> then configure accordingly.
>>
>> I explained the functionality in my training video, just have a visti at 
>> below link:
>>
>> http://qtpftvideos.blogspot.in/2012/11/how-to-work-with-datatables-part1.html
>>
>> For your second question, you have to write your own logic to iterate 
>> through the rows of data like
>> Datatable.value(ParameterId,LocalSheetId)
>>
>> Thanks,
>> Uday
>>
>> On Friday, 4 January 2013 18:12:52 UTC+5:30, pavani b wrote:
>>>
>>> 1)   If i have 2 rows in the Global Data Table and 4 rows in the Local 
>>> Datasheet. So how many time my script execute?
>>>
>>> 1)   Continue to the above question if i want to run all the rows in 
>>> local sheet what you will do?
>>>
>>>

-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

Reply via email to