My previous solution is here:
The Test Case source code is here
My code utilizes the Java Diff Utilities
library. It can process any format of text: XML, JSON, CSV, HTML, …
The output from this solution is something like this:
- original: `/Users/username/projectdir/Include/fixtures/doc1.xml`
- revised : `/Users/username/projectdir/Include/fixtures/doc2.xml`
**DIFFERENT**
- inserted rows: 0
- deleted rows : 0
- changed rows : 3
- equal rows: : 5
|line#|original|revised|
|-----|--------|-------|
|1|<doc>|<doc>|
|2|<body>|<body>|
|3|*<section>*|**<section id="main">**|
|4|<p>Hello, *John!<*/p>|<p>Hello, **Paul!<**/p>|
|5||**<p>Have a break!</p>**|
|6|</section>|</section>|
|7|</body>|</body>|
|8|</doc>|</doc>|
This output is formated in the “Markdown” format.
You would need a viewer for *.md file.
Katalon Studio does not support rendering Markdown files.
I would recommend to use Visual Studio Code with Markdown plugin.
With VSCode, you can preview any Markdown documents, like this