I am implementing regression testing for a process which output is an XML file.
what is the best option for comparing the content of 2 XML file (one pre-defined to be used for this regression, and the new one generated during the test case execution) with Katalon?
You can either do a char-by-char comparison of two strings, or test the files/strings for (essentially) XML semantic equivalence. See the top answer in this SO post:
Hi,
Could you please give more details on the settings to use XMLUnit in Katalon.
Is there a Package or a Class to import?
In setting I added xmlunit-core-2.8.2-tests.jar and xmlunit-core-2.8.2.jar, but still error on groovy.lang.MissingPropertyException: No such property: XMLUnit
Thanks
My solution applies to any text file. It compares line-by-line basis. It can compare any format: JSON, YAML, CSV, *.js, not only XML, It assumes that 2 files are “pretty-printed” before comparison.