Configuring project-specific settings for comparators
You can also configure project-specific settings for each of the universal components (with the exception of the component Binary, which does not allow this). To do so, proceed as follows:
- Start the UserClient.
- In the Project tree, right-click on the component.
- Select Edit component configuration.
- In the dialog Component configuration, click on Compare configuration.
- In the dialog, Comparison configuration, in the field Exclude lines from comparison, enter the data.
Example: Editing Json components in the UserClient:
Guide for configuration comparisons of JSON Smart Compares as seen in an example document
Example document for JSON:
Step-by-step approach for entry under Exclude lines from comparisonfor the example document.
Absolute exclusion > the beginning of the path is checked if all children are ignored.
.os The object os is ignored with all attributes (architecture, system_drive, programs). Object os2 is not ignored.
.os.architecture the architecture attribute of the object os is ignored. The architecture attribute from os2 is not ignored.
Relative exclusion > the end of the path is checked.
architecture the architecture attribute is ignored globally (from os and os2).
products.install_data the attribute install_data, of all objects listed under products will be ignored globally (for os and os2).
FAQ: Configuring the ASCII comparator: I have specified the lines that I want to exclude by entering their lines numbers, so why are they still displayed during the comparison?
Lines excluded from comparison NOT by their line numbers, but by character strings. If there are lines that you want to exclude from comparison, proceed as follows:
When you enter a string in Exclude lines from compare, all lines with that character string will be excluded from comparison.
*a -> all lines are excluded that end with the character a.
a* -> all lines are excluded that begin with the character a.
*a* -> all lines are excluded that contain the character a at any position.
In the above example, all lines that begin with Actual value and all lines that have the word alarm anywhere in them will be excluded.