Hello,
I am trying to validate that my email is the same or not in attribute but it giving me the error.
Hello,
I am trying to validate that my email is the same or not in attribute but it giving me the error.
Hey @MuhammdYousif Welcome to the community
Seems like an issue with jsonData.email, could you try and check the response in Console log?
try:
console.log(jsonData)
//or
console.log(pm.resonse.json())
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
@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?