Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

ElementComparatorCSV keyExtra config required
EqualityElementComparator"Equals" OR "" OR emptyNone
PercentToleranceElementComparator (minimum)"minPercentTolerance"Minimum percent tolerance allowed (e.g. 1.5)
PercentToleranceElementComparator (maximum)"maxPercentTolerance"Maximum percent tolerance allowed (e.g. 2.3)
Tip
A quick tip about PercentToleranceElementComparator: the minimum version specifies that the percent error between the values must be greater than some specified value, while the maximum version specifies that the percent error bewteen the values must be less than some specified value. The maximum version is much more useful and logical, but it was easy to include the other version.
Tip
If you wish to write your own comparator, simply extend ElementComparator and define a custom version of checkPointsMatch(...). For optimal results, don't throw an Exception when the check fails; instead, simply return any non-null String describing the error, and this will be collected for you and listed at the end with pipeline errors. If the comparator is satisfied correctly, simply return null.