Forum Discussion
nmrao
Champion Level 1
12 years agoHi,
Am using a library to compare two xml objects in groovy. The below is the link where you can get the details of the library. Please note that you need compile it, create a jar and copy it under $SOAPUI_HOME/bin/ext before starting soapui.
http://code.google.com/p/deep-equals/
In the groovy script create xml object for both actual and expected using XmlSlurper, you may find example at
http://marxsoftware.blogspot.in/2009/11/slurping-xml-with-groovy.html
DeepEquals.deepEquals(actual, expected)
Hope this is helpful.
Regards,
Rao.
Am using a library to compare two xml objects in groovy. The below is the link where you can get the details of the library. Please note that you need compile it, create a jar and copy it under $SOAPUI_HOME/bin/ext before starting soapui.
http://code.google.com/p/deep-equals/
In the groovy script create xml object for both actual and expected using XmlSlurper, you may find example at
http://marxsoftware.blogspot.in/2009/11/slurping-xml-with-groovy.html
DeepEquals.deepEquals(actual, expected)
Hope this is helpful.
Regards,
Rao.