#23. |Rest Assured Framework | Deserialize Response To POJO & Compare With Request POJO |

preview_player
Показать описание
#restassured #apitesting #tester #testing #equalshashcode #java #automationtestiing

In this video, I have explained how can we deserialize a JSON response to a POJO class object and compare values with the request payload POJO object.

Рекомендации по теме
Комментарии
Автор

Words are not enough to thank you 🙏!
One of the most selfless teachers we have in testing community !

umangsharma
Автор

How deserailize jsonArray to POJO class?

cr
Автор

Amod thanks for the deep dive . one question Assert.assertequals internally calls equals and hascode method?

mjjtube
Автор

Hi Sir,

When using objectMapper.readValue to get the response stored to the POJO class, I am not seeing any error. But when I try to print the content of the response using setter methods, I see as null (but the end point was actually hit successfully and response was received with expected payload).

Does this null issue has anything to do with response payload structure?

The actual response looks like this:

{
"status" : "SUCCESS",
"payload" : {
....
....
}
}

balamurugan.d
Автор

Hi Amod, Incase how to do assertion if we dont thave request payload? for GET

ivytbsz
Автор

Thanks for the videos, I am getting null values from the response on using pojo to create payloadAssertionUtils.assertExpectedValuesWithJsonPath(response, expectedValueMap); any suggestions?

preetsingh
Автор

Thanks amod for the wonderful content on rest assured api testing .

How to assert the nested json response payload using object mapper.I wanted to know is there any way to assert complete nested json payload using object mapper

aravindaet
Автор

Please sir push the code in your github

manikumar-ixsr