Forum Discussion

tristaanogre's avatar
tristaanogre
Esteemed Contributor
14 years ago

Web Table Checkpoints

I've noticed that there have been a number of questions posted recently asking about how to compare the contents of a table on a web page with a set of expected values for component types that are not explicitly supported by TestComplete (therefore, you cannot use the "Table Checkpoint").



If you haven't found it already, just thought I'd through up a quick reminder as I just (re-)discovered this and it works fantastically.



http://blog.smartbear.com/post/10-09-10/new-testcomplete-html-table-checkpoint-%e2%80%93-simplify-creation-of-tests-for-web-applications/



The only pre-requisite that I see with this is that you need to have MSXML 4 installed.  If you don't and you can't (for whatever reason), you can extract the code from the zip file and replace the call to Msxml2.DOMDocument.4.0 with simply Msxml2.DOMDocument and it works just fine.



Thanks, SmartBear, for creating this script extension.  It's a life saver.
  • surabhi_agarwal's avatar
    surabhi_agarwal
    Occasional Contributor
    I am trying to use the HTML table checkpoint. But somehow it is not working for me. When I use the Drag and identify tool, it does not pick up the table. (even though it highlights is with the red box).

    Can someone please help.
  • Taegost's avatar
    Taegost
    New Contributor
    Thank you for this, I have a web application that makes heavy use of tables and I think I can use this as a base to create my individual tests from.
  • Thanks for this... I also plan on using this functionality.  I have a question: I plan on comparing the data in the tables to an Excel spreadsheet.  I see that a requirement for this to work properly is to install the the 2007 Office System Driver (for Excel 2007).  I am using Excel 2010 - do I need anything then to do this?
  • Hmmm... in the reading information in this blog more closely, I see this only supports up to TestComplete 8.0 and up to Firefox 3.6 and IE 8.  Is this still the case?  
  • Hi,



    Web tables always have the same structure. This doesn't depend on your browser's or TC's version.
  • Thanks so much!  So do you know that if I am using Excel 2010 that I will still need to install the the 2007 Office System Driver (for Excel 2007).  Not sure if this will still be required or there's a newer one for 2010....
  • Hi,



    Normally, if MS Office is installed in your system, you won't need to install additional drivers because the appropriate data providers should be shipped with it. Anyway, Excel 2007 is mentioned in the documentation because the file format changed since this version (XLSX implemented in it). If you have Excel 2007 or newer, you should already have the needed driver.
  • AlexKaras's avatar
    AlexKaras
    Champion Level 3
    Hi,



    Just would like to wonder if the HTMLTableCheckpoint extension mentioned by Robert (http://blog.smartbear.com/post/10-09-10/new-testcomplete-html-table-checkpoint-%e2%80%93-simplify-creation-of-tests-for-web-applications/) is still the latest one or it was updated? Is the updated version available?



    I'm wondering because the referenced version was released when TestComplete did not have yet neither current extended cross-browser testing nor Chrome support and the code in the extension assumes previous object model and support for only IE and FireFox.