Micro Focus QTP (UFT) Forums
Table checkpoint - 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: Table checkpoint (/Thread-Table-checkpoint--2174)



Table checkpoint - SAKDOSS - 08-03-2009

Hello everybody,

I'd like to check a precise cell in a JTable.
I wrote an algo which gave me the x and y position of this cell (the position can change).

But now I don't know how to create the checkpoint.

I mean, I know how to check a JTable but here the cell can have each time a different place.

Is there a way to check this cell thanks to the x and y value I found ?



Thanks in advance !


RE: Table checkpoint - SAKDOSS - 08-04-2009

Ok I finally found.

It's possible with the Reporter.ReportEvent.

Code:
            If  table.GetCellData(rowExNum, colExNum) = "COMPLETED" Then
                Reporter.ReportEvent micPass, "Order Status", "OK"
            Else
                Reporter.ReportEvent micFail, "Order status", "Not OK"
            End If