Forum Discussion
The aqFile.Compare method, compares two files byte-by-byte.
Can you add those two files that fail to compare?
rraghvani I have found a solution by writing my own logic w/o using Compare method.
As I mentioned in one of the old replies that the files are same in content:
FileA
[
abc
zzz
]
FileB
[
abc
zzz
]
But it only Pass if FileA is the copy of FileB by copypasting. If I created FileB without making a copy of FileA, it would have failed.
- AlexKaras2 years agoChampion Level 3
Hi,
Check https://support.smartbear.com/testcomplete/docs/reference/program-objects/aqfile/opentextfile.html and https://support.smartbear.com/testcomplete/docs/reference/program-objects/aqfile/readwholetextfile.html help topic for the idea of custom text files comparison.
Regular expressions (e.g. https://support.smartbear.com/testcomplete/docs/reference/program-objects/hisutils/regexpr/replace.html) can be used if certain data inside files (e.g. dates/time/etc.) must be ignored during compare.
Related Content
- 2 years ago
- 2 years ago
- 2 years ago
Recent Discussions
Working with Visual Test
Solved2 days agoBypassing TC engine
Solved2 days ago