Open
Description
One test case reported an unexpected difference where elements were identical but in a different order. The current code failed to determine the elements that were the same.
The current logic to compare elements is as follows:
- Compare the element names.
- If the element names are the same, compare the values of "id" attribute if present.
- If the elements are the same and "id" is not present, compare the values of "name" attribute if present.
An order difference is detected if any of the above conditions report an unequal result. Only id and name attributes are considered keys; all other attributes are considered non-key.
In the example, the elements names were all the same but they contain neither "id" nor "name" attributes. Therefore, they are all considered equal from an ordering perspective. The "value" attribute and element text are thus reported as changes of elements that seemingly have not moved.
Metadata
Metadata
Assignees
Labels
No labels