-
Notifications
You must be signed in to change notification settings - Fork 49
SourceComparator
Wiiitek edited this page Mar 9, 2018
·
5 revisions
Source Comparator is responsible for comparing collected page source with pattern.
Can be rebased from report.
Module name: source
Resource name: source
Parameter | Value | Description | Mandatory |
---|---|---|---|
compareType |
content | Compare only text inside HTML nodes. Ignore formatting, tag names and attributes. | no If compareType is not provided default all value is taken. |
markup | Compare only HTML markup and attributes. Ignore text inside HTML tags, formatting and white-spaces. Remove empty lines. | ||
allFormatted | Compare full source with formatting and white-spaces ignored. Remove empty lines. | ||
all | Compare all source (default). |
<?xml version="1.0" encoding="UTF-8" ?>
<suite name="test-suite" company="cognifide" project="project">
<test name="source-compare-test">
<collect>
...
<source />
...
</collect>
<compare>
...
<source comparator="source" compareType="markup" />
...
</compare>
<urls>
...
</urls>
</test>
...
<reports>
...
</reports>
</suite>
Following filters could be applied to collected source before comparison:
-
How To Use
-
Releases