I am looking for the easiest way to compare the contents of a text file using VBscript. I saved the compare data as a file store and am unsuccessfully trying to compare to that. Is there any way to attain the new data in a text file and compare to the item in the store?
I had attempted the following (doesn't work) :
If Not Files.Compare(files.Screen_txt, "C:\Validation\newscreen.txt") Then
Log.Warning("New list is different")
I'd appreciate words of wisdom here. I'm sure it's easy but I'm new to TC and figuring it out as I go.
is there any way to get it to show the differences or do I need to use a diff tool?
[/ QUOTE ]
TestComplete provides built-in features for integration with text comparison tools. Please see the description of the "Files diff utility" option in the "Stores Options Dialog" (http://smartbear.com/support/viewarticle/11077/) help topic.
[ QUOTE ]
Question now is, does Files.Compare method look inside the file and compare data or just bytes?
[/ QUOTE ]
What do you mean by "data" here? All files are just bytes on your hard disk.