It is not based on index that I'm aware of. I'm using descriptive 
programming and use the table's column names to identify the object.

On Wednesday, October 29, 2014 11:13:44 AM UTC-5, udhaya kumar wrote:
>
> Hi, 
>
> Can you check whether getroproperty returns rows count based on index or 
> not. 
>
> Object spy may return rows count without index based.
>
> This may give discrepancy
>
> Regards, 
> Udhay
> Hi,
>
> I have a script that is giving me one problem that I can't figure out. I 
> make the following call and it returns 9; however, when I spy the object 
> and look at the number of rows it contains I get 10. Why the discrepancy?
>
> JavaWindow(window).JavaTable(table).GetROProperty("Rows")      'This 
> returns 9, Object Spy shows 10.
>
> I've tried to use RowCount to get around it, but that doesn't work. Also, 
> just for debugging purposes, I did:
>
> JavaWindow(window).JavaTable(table).GetCellData(9, 0)     '9 is, 
> obviously, the 10th object given zero-based index.
>
> and this did give me a value so it obviously can get data from the 10th 
> row, but the GetROProperty("Rows") does not return the right number of 
> rows.
>
> Any suggestions?
>
> -- 
> -- 
> 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] 
> <javascript:>
> To unsubscribe from this group, send email to
> [email protected] <javascript:>
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en
>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "QTP - HP Quick Test Professional - Automated Software Testing" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> For more options, visit https://groups.google.com/d/optout.
>  

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to