Forum Discussion
nmrao
10 years agoCommunity Hero
Not sure if I got your question.
Do you want to ignore while comparing the response if this optional element is part of the request?
Do you want to ignore while comparing the response if this optional element is part of the request?
Happy
10 years agoContributor
Yes, you are right. Element should be presented in expected mock request, but should be ignored, if not appear in actual.
- nmrao10 years agoCommunity HeroOk.
It requires to program either in java/groovy using tools like xmlunit.
For eg, see below link
http://stackoverflow.com/questions/1241593/java-how-do-i-ignore-certain-elements-when-comparing-xml