kandy1984
11 years agoContributor
Trouble comparing .xlsx file
Hi,
I am using the code below to compare 2 .xlsx files.
Sub Main
xlfile1 = "C:\Users\lac001\Desktop\aaa.xlsx"
xlfile2 = "C:\Users\lac001\Desktop\bbb.xlsx"
resfile = "C:\Users\lac001\Desktop\c.xlsx"
Log.Message objectExcel.ExcelCompare(xlfile1, xlfile2, resfile)
End Sub
I found a problem when comparing 2 subsequence numbers eg, if file1 has number 4 and file2 has number 5 then this script does not gives any errors. if i change the number in file 1 to 3, then it returns as mismatch. i have attached the .xlsx files with number 6 and in another file number 7 and when i compare these 2 files, the script returns as they are the same.
I read this article (http://support.smartbear.com/viewarticle/42199/?_ga=1.74915985.2000112212.1395883530) and installed the script extension.
Thanks for helping.
Sudha
I am using the code below to compare 2 .xlsx files.
Sub Main
xlfile1 = "C:\Users\lac001\Desktop\aaa.xlsx"
xlfile2 = "C:\Users\lac001\Desktop\bbb.xlsx"
resfile = "C:\Users\lac001\Desktop\c.xlsx"
Log.Message objectExcel.ExcelCompare(xlfile1, xlfile2, resfile)
End Sub
I found a problem when comparing 2 subsequence numbers eg, if file1 has number 4 and file2 has number 5 then this script does not gives any errors. if i change the number in file 1 to 3, then it returns as mismatch. i have attached the .xlsx files with number 6 and in another file number 7 and when i compare these 2 files, the script returns as they are the same.
I read this article (http://support.smartbear.com/viewarticle/42199/?_ga=1.74915985.2000112212.1395883530) and installed the script extension.
Thanks for helping.
Sudha
- Hi Sudha,
I observe the same behavior on my computer. This sample was created by our TestComplete Customer Care Team. Could you please contact them to investigate what is going wrong?