Wanted to compare two responses from different API But i am facing issue :-
Response 1 :-
{
“errorDescription”: “”,
“message”: “”,
“resultCode”: “OK”,
“resultObj”: {
“ip”: “192.168.7.60”,
“x-up-forwarded-for”: “”,
“port”: “43307”
}
}
Response 2 :
{
“resultCode”: “OK”,
“errorDescription”: “”,
“message”: “”,
“resultObj”: {
“ip”: “10.0.0.4”,
“port”: null,
“x-up-forwarded-for”: “”
},
“systemTime”: 1533906004
}
Here we are comparing all the keys present in both the responses but i am not able to compare it. I want to compare 1st and 2nd response and if anything is missing in 2nd response from 1st response then fail the test including keys inside the resultObj.
Please help me out it will be a great help