cancel
Showing results for 
Search instead for 
Did you mean: 

Need help with XmlSlurper

SOLVED
Highlighted
Community Hero

Re: Need help with XmlSlurper

log.info map[7] - what happens?


Regards,
Rao.
Highlighted
Occasional Contributor

Re: Need help with XmlSlurper

 

Caught: groovy.lang.MissingPropertyException: No such property: log for class: xmlParse1
groovy.lang.MissingPropertyException: No such property: log for class: xmlParse1

Highlighted
Community Hero

Re: Need help with XmlSlurper

Would you mind showing a screen shot?


Regards,
Rao.
Highlighted
Super Contributor

Re: Need help with XmlSlurper

My example works with the above response string or any other combination of documents if dates are in the same format. Is the latest response exactly the same?

Result is the correct dates array [10.10.2010, 13.05.2015, 23.03.2016]

Reverse sorting by date the result is 23.03.2016 for the first element so you don't need to find index 7

 

Just copy the code into a script assertion with no other lines.

Highlighted
Occasional Contributor

Re: Need help with XmlSlurper

@PaulMS,@nmrao

Thank you guys for helping, both scrpits are working.

 

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors