divya_26
5 years agoOccasional Contributor
How to compare only selected nodes xml data of jdbc response with my json response
Hi guys,
I am new in automation and soap ui open source.
In one test step, I am getting json response.
and in another test step, I am getting xml response.(by using jdbc sql)
Now, I want to compare some of the values of my json response with that of xml response.
How should I do it.
lets say, my json response contains id, roll no., name, password, address.
and in xml(response from running query), i have reg_no, name
Now i want to match roll no and reg_no.
Please suggest me how to do it. If can be done through groovy script, then please how?
Thanks in advance
- Thanks for the reply.
There is script created, can you try modifying it to your need. If you still have issue, post what you tried .
https://github.com/nmrao/soapUIGroovyScripts/blob/master/groovy/compare/JdbcAndJsonCompare.groovy