Micro Focus QTP (UFT) Forums
Checking new row is added to a table - 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: Checking new row is added to a table (/Thread-Checking-new-row-is-added-to-a-table)



Checking new row is added to a table - huayue524 - 05-06-2009

Does anyone know how to check if a new row is added to a table, when the row index of the new entry can vary?

I'm testing a procedure for adding a new row containing text strings to a table. The row index for the new entry can vary depending on the text string supplied and how the table is sorted.

Any ideas?

Your help is greatly appreciated!

Thanks
I suppose i can use a check point to verify the textstring i added is at row i column j of the datatable, then iterate i and j to check the entire table.

However, even if the data is inserted correctly into the table, the test result will come out as i*j-1 fails and 1 pass.

This will make the text results hard to read, so i'm looking for an alternative way to check.


RE: Checking new row is added to a table - Jackomcnabb - 05-21-2009

it all depends on what type of table object you are using? is it a GUI or a Database table?