Forum Discussion

mcguireden50's avatar
mcguireden50
New Contributor
15 years ago

File comparisons checkpoints

If a checkpoint is different how can I log the error and continue the test. As it stands now it logs the error and the playback stops.

Version 8.1



TIA

Dennis McGuire

  • Hi Dennis,





    You can use the Files.Compare method that lets you specify the type of the message posted to the log when the checkpoint fails:







    Files.Compare(Files.FileNameByName("C:\\File1"), Files.FileNameByName("C:\\File2"), 0, true, lmWarning); //a warning will be posted to the log







    For more information, refer to the Files.Compare help topic.