Forum Discussion

mcguireden50's avatar
New Contributor
14 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


Dennis McGuire

1 Reply

  • 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.