Forum Discussion
nmrao
9 years agoChampion Level 3
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?
- Happy9 years agoContributor
Yes, you are right. Element should be presented in expected mock request, but should be ignored, if not appear in actual.
- nmrao9 years agoChampion Level 3Ok.
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
Related Content
- 4 years agomehdisinger
- 2 months agoStoplight
- 3 years agoprekar