Forum Discussion
eissaeva
Contributor
The expected and actual JSON responses are attached.
I removed date and timestamp which appears in the output console after executing log.info ()
def infoConstActual = context.expand( '${postQueryWithSFGraphIdAndBlankConstraint#Response#$[\'data\'][\'groundProjection\'][\'informationConstraints\']}' )
def infoConstExpected = context.getTestCase().getPropertyValue("gpInfoConstraints")
nmrao
4 years agoChampion Level 3
Please check below thread to compare two responses.
- eissaeva4 years agoContributor
Thanks
Comparing 2 maps worked but we can achieve the same with ReadyAPI assertions.
My task is to get the differences between the complex json responses. JsonAssert is also mentioned in the article but it supports JUNIT only
Any idea how to use this library in ReadyAPI groovy?
- nmrao4 years agoChampion Level 3The response seems to be big.
If you want to show the differences, then one needs to program accordingly.
Related Content
Recent Discussions
- 5 days ago
- 10 days ago