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?
Compare webtable against database.
|
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.
Thanks...
|
« Next Oldest | Next Newest »
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Compare WebTable Elements | saraiado | 1 | 2,684 |
06-11-2015, 06:54 PM Last Post: venkatesh9032 |
|
How to compare two binary values | Naresh | 0 | 2,470 |
09-09-2014, 05:06 PM Last Post: Naresh |
|
how to compare excel with datatatble | diya | 4 | 5,706 |
12-04-2012, 05:39 AM Last Post: diya |
|
How do I compare 2 text files? | avanthika | 4 | 15,513 |
12-10-2011, 09:03 PM Last Post: Arul |
|
How do I do an image compare? | typeOpositive | 2 | 5,645 |
12-08-2010, 06:00 PM Last Post: typeOpositive |
Users browsing this thread: 1 Guest(s)