Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compare webtable against database.
#1
Solved: 10 Years, 9 Months ago Sad 
I'm new to QTP. I have a webtable in my application. I would like to compare the table contents against a database table. I wanted to compare number of rows, number of columns and cell contents. Could anybody please help me with it?
Reply
#2
Solved: 10 Years, 9 Months ago
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.

Reply
#3
Solved: 10 Years, 9 Months ago
Thanks...
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Compare WebTable Elements saraiado 1 2,445 06-11-2015, 06:54 PM
Last Post: venkatesh9032
  How to compare two binary values Naresh 0 2,170 09-09-2014, 05:06 PM
Last Post: Naresh
  how to compare excel with datatatble diya 4 5,221 12-04-2012, 05:39 AM
Last Post: diya
  How do I compare 2 text files? avanthika 4 14,276 12-10-2011, 09:03 PM
Last Post: Arul
  How do I do an image compare? typeOpositive 2 5,200 12-08-2010, 06:00 PM
Last Post: typeOpositive

Forum Jump:


Users browsing this thread: 1 Guest(s)