Question:
In the DevTest Manual, the explanation for the "XML Compare Options" for the "Graphical XML Side-by-Side Comparison" Assertion is as follows:
....
• Whitespace
But when checking the "XML Compare Option" for the "Graphical XML Side-by-Side Comparison" Assertion at a test step from the workstation,
then we can see only these whitespace options:
How do we set up the "Collapse whitespace" option for the "Graphical XML Side-by-Side Comparison" Assertion?
All supported DevTest versions
Please do the following steps:
1. Open the project which includes the test cases with "Graphical XML Side-by-Side Comparison" Assertion from the Workstation.
2. Open the test case which uses the "Graphical XML Side-by-Side Comparison" Assertion.
3. Click step which includes the "Graphical XML Side-by-Side Comparison" Assertion.
4. Click the "Graphical XML Side-by-Side Comparison" Assertion.
5. Click the "Use Property" tab in the "Setting" tab in setting GUI for the "Graphical XML Side-by-Side Comparison" Assertion.
6. Check the check box named "Use Property for XML diff" options".
7. Push the button named "Create Config Property".
8. Make sure the field named "XML diff options property name:" was filled in the value "xmlDiffOptions1".
9. Save and close the test case.
10. Open the project.config file.
You can see the property which key name is "xmlDiffOptions1" and value is:
<xmlDiffOptions>
<ignoreNamespaces>false</ignoreNamespaces>
<ignoreNamespacePrefixes>true</ignoreNamespacePrefixes>
<caseSensitive>true</caseSensitive>
<trimWhitespace>true</trimWhitespace>
<normalizeWhitespace>false</normalizeWhitespace>
<collapseWhitespace>false</collapseWhitespace>
<ignoreWhitespace>false</ignoreWhitespace>
<ignoreAttributes>false</ignoreAttributes>
<ignoreElementText>false</ignoreElementText>
<ignoreAttributeValues>false</ignoreAttributeValues>
<ignoreElementOrdering>false</ignoreElementOrdering>
<ignoreAttributeOrdering>true</ignoreAttributeOrdering>
</xmlDiffOptions>
11. So please edit inside the value from:
<collapseWhitespace>false</collapseWhitespace>
to
<collapseWhitespace>true</collapseWhitespace>
12. After that, save and close the project.config file.
13. Open the test case which includes the "Use Property" option for the "Graphical XML Side-by-Side Comparison" Assertion and execute the assertion.
14. Even if you set the options in the "Compare Options" tab, the assertion ignores this setting in the "Compare Options" tab when you use properties for this assertion.