Automated methods to compare responses from 2 endpoints
I am performing data driven testing using groovy scripts by retrieving xml files stored in local drive and triggering requests to 2 end points. The responses from both the end points are collected and saved in local drive in xml formats. Please help in writing a groovy script for file comparison - the existence of first node from xml1 has to be validated in Xml2. Likewise it has to pick all the nodes from xml1 and validate its existence in xml2. Since i am performing this for bulk data, want to get this done through automated methods.