Micro Focus QTP (UFT) Forums
Table check point. - 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 check point. (/Thread-Table-check-point--3381)



Table check point. - Bala Preetha33 - 05-18-2010

Hi

I used table check pt in my test.. In that i hav givevn the expected value.. After running the test it showing cell not found.. But the value in the table is correct what i have mentioned.. I don know how to solve this.. Plz help me.. Thanks in advance.

Regrads,
Preetha.Wink


RE: Table check point. - basanth27 - 05-18-2010

It would be highly appreciable if you could paste the code you have tried so far ? That helps us understand better.


RE: Table check point. - raghavendra.hosur - 05-18-2010

Hi Preetha,

The best way to handel this would be dont use table checkpoint rather use combination If Else and For Next as below,

For Ex:
Code:
rowcount=Browser().Page().Frame().WebTable().GetRowCount
colcount=Browser().Page().Frame().WebTable().GetColumnCount

For i=1 to rowcount
For j=1 to colcount
arr=Browser().Page().Frame().WebTable().GetCellData(rowcount,colcount)
If arr=expectedvalue then
Reporter.reportevent micPass,"",""
Else
Reporter.reportevent micFail,"",""
End If

Regards,
Raghav