Difference between GetROProperty("Rows") and RowCount in webtable

728 views
Skip to first unread message

vamsi reddy

unread,
Mar 15, 2013, 2:18:21 AM3/15/13
to mercuryqtp

Hi All,

I faced a qn in an interview what is the difference between GetROProperty("Rows")  and RowCount in Webtable?

 a = Browser("BSE Ltd. (Bombay Stock").Page("BSE Ltd. (Bombay Stock").WebTable("Index").GetROProperty("Rows")

a = Browser("BSE Ltd. (Bombay Stock").Page("BSE Ltd. (Bombay Stock").WebTable("Index").RowCount

-- 

Thanks 

Vamsi Reddy

 
 
 

Venkat Reddy Bandaru

unread,
Mar 15, 2013, 2:33:11 AM3/15/13
to mercu...@googlegroups.com
Hi Vamshi,
Above both lines are giving same answer
Either we can use for getting the number of row count ina web table

Thanks

 
Thanks & Regards,
Venkat Reddy Bandaru



--
--
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 Mercu...@googlegroups.com
To unsubscribe from this group, send email to
MercuryQTP+...@googlegroups.com
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 mercuryqtp+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

chaman kalra

unread,
Mar 15, 2013, 2:35:14 AM3/15/13
to mercu...@googlegroups.com
Hi,

1. getroproperty:it will return all the values of the property during runtime:rows=?
2. rowcount will count the number of rows


On Fri, Mar 15, 2013 at 11:48 AM, vamsi reddy <vamsi...@gmail.com> wrote:
--
--
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 Mercu...@googlegroups.com
To unsubscribe from this group, send email to
MercuryQTP+...@googlegroups.com
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 mercuryqtp+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Thanks & Regards
Chaman Kalra
Email :lucky...@Gmail.Com




Venkat Reddy Bandaru

unread,
Mar 15, 2013, 2:37:37 AM3/15/13
to mercu...@googlegroups.com
Inline image 1

 
Thanks & Regards,
Venkat Reddy Bandaru



image.png

Akhalesh Yadav

unread,
Mar 15, 2013, 5:37:22 AM3/15/13
to mercu...@googlegroups.com
Hi Vamsi,
             getroproperty("row") will return total no of rows exist in webtable at run time.But if we want to count some selected rows based on specific conditions then we will use webtable.rowcount method, with appropriate condition.
if webtable("").webcheckbox("index:="&i).checkproperty("checked"True) then
  rowcount counter increased by one
else
end if
hope now you will be understood and if i am wrong then correct me

Thanks
Akhalesh
Akhalesh yadav
+919555717928
+919310680659

Siva Prasad

unread,
Mar 15, 2013, 9:31:42 AM3/15/13
to mercu...@googlegroups.com
By using getroperopertywe can get the particular value of proeprty, wehre as it's not poosible in getrowcount.
getrowcount is used to diplay hte number of rows in your table.

Thanks&Regards,
Prasad Kopparapu
+91-9032114331
Reply all
Reply to author
Forward
0 new messages