Forum Discussion
tania90
10 years agoOccasional Contributor
Not able to parse XML rest response using XmlSlurper and add elements to a list.
- nmrao10 years agoCommunity HeroI see the xml response that you had attached and that is partial response. You did not mention what is exact problem. Would you please show the same?
- tania9010 years agoOccasional Contributor
The problem is I am not able to extract and put rest response elements ( First-name, Surname, Title ) in a list for comparison with jdbc response.
On executing the groovy script assertion, I am being returned blank list for rest response when XmlSlurper. With XMLparser also able to extract specific elements not all the elements in the list.
Please suggest changes in my code