Forum Discussion

krkarthik_info's avatar
krkarthik_info
Frequent Contributor
9 years ago
Solved

How to compare two excel files with improved mechanism?

Hi,   I have two excel files (.xlsx) with same number of columns with large amount of rows data (around 45000 rows in each files). I have the logic as mentioned below which takes more time to compa...
  • baxatob's avatar
    baxatob
    9 years ago

    Hi Karthik,

     

    I think you have to use another approach for Scenario #2 , because actually these files are different.

     

    E.g. open File 1, get all values under the column "Name" into the array1. Then open File 2, get all values under the column "Name" into the array2. Then compare array1 with array2.

     

    How to work with Excel files using TestComplete methods you can find here. Also it's may be more convenient to use a native libraries for your preferred language to work with Excel directly.