Forum Discussion

vpachpute1's avatar
vpachpute1
Frequent Contributor
9 years ago
Solved

Groovy : XML Comparison: Dynamic XML Attributes are not ignored whie comparison.

Hi

 

I have one Groovy utility to compare current response with external response kept in xml file.

 

But while comparison, I am facing issue if parameter contains space. e.g.

1. If parameter is present as , subscription id .Then it is not ignored

2. If parameter is present as, subscription-id. Then it is ignored while comparison. Working file.

 

My case:

Actually in my case, subscription id will be dynamic. So while comparison , I added it in ignore list. So that next time this will be ignored while comparison.

 

Attached my groovy Utility and sample external response file.

 

Regards

Vishal