XML testing can be under 2 scenarios.
1) Validating the Structure of XML.
2) Comparing Nodes and Properties.
3) Comparing XML file against a Standard XML format to find differences.
Validating the Structure of XML.-Sometimes the AUT would return result-sets in XML formats. Meaning as an output of any operation carried out in the application, an XML fiel could be generated.As part of testing we would need to validate the Structure of the XML in terms of Parent - Children nodes. We would also need to ascertain Node properties and Attributes.
Comparing Nodes and Properties.-Testing scope in this would involve extracting Specified Nodes and their Attribute values and checking whether valid data was actually posted in these.
Comparing XML file against a Standard XML format to find differences.-In the above scenario, XML files from 2 environments would be compared. It should not be a textual comparision, as it would be ineffective. It would be Node based comparision where Every Parent node would be compared in terms of Child Nodes, attributes etc.Overall structure of both XML's would be compared.
Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!