Micro Focus QTP (UFT) Forums
How to create table a check point? --- Ankur's article - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: How to create table a check point? --- Ankur's article (/Thread-How-to-create-table-a-check-point-Ankur-s-article)



How to create table a check point? --- Ankur's article - Akhila - 11-11-2008

Hi Ankur,


In your article "How to create a table check point?"
The loop for checking No.of Unread mails is not very clear in the video...

I was struck up with creating loop to check for Unread mails...I am wrote <<
Code:
("Inbox").getroproperty("rows") = "Unread"
>>> is it correct method??

for my code below its not giving Unread mails count...

<<<<
Code:
rows = Browser("Inbox (34) - Yahoo! Mail").Page("Inbox (34) -Yahoo! Mail").WebTable("Inbox").getroproperty("rows")

For i = 2 to rows
Browser("Inbox (34) - Yahoo! Mail").Page("Inbox (34) - Yahoo! Mail").WebTable("Inbox").getroproperty("rows")
If Browser("Inbox (34) - Yahoo! Mail").Page("Inbox (34) - Yahoo! Mail").WebTable("Inbox").getroproperty("rows") = "Unread"  Then
counter =counter + 1
End If
Next
msgbox counter
>>>>

Can you please check where I am wrong?

Thanks,
Akhila


RE: How to create table a check point? --- Ankur's article - ashuniks - 12-18-2008

hi akhila
use this code
Code:
c=0
rows=Browser("Inbox (3) - Yahoo! Mail").Page("Inbox (3) - Yahoo! Mail").WebTable("Inbox").GetROProperty ("rows")
For i=2 to rows
If Browser("Inbox (3) - Yahoo! Mail").Page("Inbox (3) - Yahoo! Mail").WebTable("Inbox").GetCellData(i,1)="Unread" Then

        c=c+1
        
    End If

Next
msgbox c