AssertionError: expected ' ' to deeply equal

Hello @moorthi_raj

Thanks for your comments, I tried with
pm.expect(0).to.eql(pm.globals.get(1));

but, I am still getting the AssertionError: expected 0 to deeply equal undefined, as message.

Hi @Raja2242

If the error is coming as ‘undefined’ means,

then log the values of the variable you are getting globally as,

console.log(pm.globals.get(1)); //should show the respective value

But we will save the a value globally as a variable right! So could you provide the variable name to call there like,

console.log(pm.globals.get(“variableName”));

I tried in my end and advising this. Please check and let me know if you have any issues.