cancel
Showing results for 
Search instead for 
Did you mean: 

[TechCorner Challenge #5] Comparing content of HTML table with Excel file data

Highlighted
Community Manager

[TechCorner Challenge #5] Comparing content of HTML table with Excel file data

Hi TestComplete Community!

 

Ready for a challenge? Here it is! Learn new things about working with the product, and get into the TechCorner Leaderboard!

 

Task: Create a script that will compare the values of an HTML table and an Excel file cell by cell and log the difference between them.

Difficulty: Star_Gold.pngStar_gray.pngStar_gray.png

 

For the task implementation, you can use the Web Orders table and the attached Excel file. Here is an example of TestComplete’s Test Log demonstrating the difference between the sources:

 

test-log.png

 

Solve the task and post your scripts here. We are looking forward to seeing your scripts!

 

Helpful resources:

You can loop through the table as described in this article: Parsing HTML Tables.

As for working with Excel, TestComplete offers several ways to extract the data - choose the one you want to use in Working with Microsoft Excel Files. If you are using the latest TestComplete version (14.50), you can utilize the new Excel support - it does not even require Excel to be installed on the machine!

 

Note: the HTML table size and the Excel table size might be different. So, it’s a good idea to throw an error if the dimensions are not the same.

 

Good luck!

 

P.S. You can find the TechCorner Leaderboard and rules of how to participate in the challenge by this link.


Sonya Mihaljova
Community and Education Specialist

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
Tags (1)
1 REPLY 1
Highlighted
Community Manager

Re: [TechCorner Challenge #5] Comparing content of HTML table with Excel file data

Who wants to try solving this one?🙂

 

@m_essaid @tristaanogre @anupamchampati @BenoitB 


Sonya Mihaljova
Community and Education Specialist

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

Changing options from outside of TestComplete

Participate!

How to execute remote test and obtain results via Test Runner REST API

Participate!

Comparing content of HTML table with Excel file data

Participate!

Compare HTML table with Excel file and correct data in the file

Participate!
Top Kudoed Authors