eissaeva
4 years agoContributor
How to dynamically compare actual and expected JSON response with Groovy?
In my project, when assertion fails, we manually compare expected with actual response.
Sometimes response can include hundreds of lines and its difficult to compare manually
How to compare partial response ( expected to actual ) using a common groovy script which can be used with any test case as a debug step and point out differences?
When we create assertions, we capture expected response. How to dynamically capture this response using groovy script (dynamically = response which can be captured for any assertion) ?