Ask a Question

How work Excel Checkpoint?

lodecesa
Contributor

How work Excel Checkpoint?

Hi,

Can someone explain to me how the Excel Checkpoint works? It seems like it just compares the content of an existing Excel file with itself. What I would like it to do is compare an existing Excel file with an Excel file that I download from a web page during the test.

 

Thanks

4 REPLIES 4
rraghvani
Trusted Contributor

You can compare two Excel files with CheckExcelWorkbook Method.


@rraghvani wrote:

You can compare two Excel files with CheckExcelWorkbook Method.


I want to compare only two sheets from the two Excel files, that is to compare Sheet1 of Excel file A with Sheet3 of Excel file B.

rraghvani
Trusted Contributor

"What I would like it to do is compare an existing Excel file with an Excel file that I download from a web page during the test." - you did say "file".

 

Use DDT.ExcelDriver Method, create a function to loop through each worksheet and compare values.

 

tristaanogre
Esteemed Contributor

That's going to entail you writing your own custom comparison routine.  Your best bet is to, as @rraghvani mentioned, use the DDT.ExcelDriver object to read and compare the two sheets.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
cancel
Showing results for 
Search instead for 
Did you mean: