Forum Discussion
nmrao
4 years agoChampion Level 3
Possible. Please provide sample data as solution would be directly related to your json.
- eissaeva4 years agoContributor
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")- nmrao4 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?
Related Content
Recent Discussions
- 7 days ago