Verify the Email | AssertionError: expected undefined to deeply equal ''


I am trying to validate that my email is the same or not in attribute but it giving me the error.

Hey @MuhammdYousif :wave: Welcome to the community :partying_face:

Seems like an issue with, could you try and check the response in Console log?


and then check the email property.

Hello @bbahadur ,
Thanks for supporting. I am attaching a snapshot of my Console. Could you understand what I need?

So as you see, the response object has the properties ‘status’, ‘message’ and ‘data’
And in ‘data’ we can find the email,

So just update you jsonData variable as:

var jsonData = pm.response.json().data

then your test script should work!

Good luck :slight_smile:

@bbahadur thanks. It’s working for me.
I have a few queries related to the Postman.
How can I send the value of the email parameter or parameters in postman?