08-28-2009, 10:30 AM
Hi LTFL,
There are mthods in QTP for webtable object to get the required info.
RowCount- Returns the number of rows in the table.
ColumnCount- Returns the number of columns in the table.
GetCellData -Returns the text contained in the specified cell.
for more details look for webtable object in QTP help.
to compare these with database- you will need to connect to database, get the recordset using your query.
all these info will be there in recordset. which can be compared as required.
hope this info is sufficient to proceed with and let us know if you have any issue, Paste your lines of code as well so that we can help you in better way.
There are mthods in QTP for webtable object to get the required info.
RowCount- Returns the number of rows in the table.
ColumnCount- Returns the number of columns in the table.
GetCellData -Returns the text contained in the specified cell.
for more details look for webtable object in QTP help.
to compare these with database- you will need to connect to database, get the recordset using your query.
all these info will be there in recordset. which can be compared as required.
hope this info is sufficient to proceed with and let us know if you have any issue, Paste your lines of code as well so that we can help you in better way.