File Comparators
Plain File Comparator
Create an instance of the comparator by providing the file paths of the two files that are going to be compared, for example:
To be able to use the custom assertions over the comparators, you will need to import the Mobilize.QualityMate.Common.Extensions
namespace.
Additionally the comparator can generate a verbose output that will help you to identify differences found within the files. Example:
If the files have differences, the comparator will generate a file with the prefix plaindiff and extension .html with the results.
The comparators' default output path is within the TestOutput folder.
XML File Comparator
This comparator works similar to the Plain File Comparator because both are based in the same class. Here is an example:
Multiple validations over the same comparator instance will print the results into the same output file.
Last updated