Quantcast
Channel: New board topics in SmartBear Community
Viewing all articles
Browse latest Browse all 21061

validating that 2 json nodes are equal

$
0
0

Hi,

we have the need to validate that 2 json nodes containing a batchid are equal. see attachment

 

this would seem to be very simple but yet we cannot get this to work properly.

 

i have tried this in an assertion and in a groovy script and both produce errors

 

def a = ($.points[0].batchId)
def b = ($.points[1].batchId)


assert a==b

i have tried a couple of other types of assertions to validate they are equal, with no luck.

 

isn't there an easy way to validate that 2 things are equal?

thanks Lee

 

 

 


Viewing all articles
Browse latest Browse all 21061

Trending Articles