Forum Discussion
You do not need to store files within TestComplete to compare them, as long as your local file paths do not change you should be able to use their direct paths like so:
if (!Files.Compare("C:\\Work\\OrdersList_Var1.txt", "C:\\Work\\OrdersList.txt"))
Log.Warning("List of orders was changed");
official TestComplete reference [here].
Kitt I tried that but it says 'File is not defined' until I create a Store.
Instead I am using aqFile.Compare which works fine but the problem is that it seems to compare attributes of two files besides content. So for example, if my file1 has 'abc' and file2 also has 'abc' it fails the comparison until file2 is the copy of file1 which does not make sense. If I create file2 (i.e I do not copy/paste file1 and rename it to file2) the comparison fails.
Any idea what else the compare method checks besides content as my only requirement is to match content not any metadata.
Thanks
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