The “id_user” variable has the value “3”. the “id” from json is equal to “3”.
pm.expect(json Data.id).to.eql("{{id_user}}");
Using this command, I try to compare values. Returns an error:
AssertionError: expected 3 to deeply equal ‘{{id_user}}’
If the code above is replaced with:
pm. expert(json Data.id).to. eql(3);
Everything works.
Your question may already have an answer on the community forum. Please search for related topics, and then read through the guidelines before creating a new topic.
@danny-dainton
Returns an error: Your test name | AssertionError: expected 3 to deeply equal ‘3’. =(
Is it possible that the value “id_user” was written in string format?