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.
Hereās an outline with best practices for making your inquiry.
My question:If i validate two API ? with respect to Object and values if the both APIās are objects and values are different i want those objects and values to be printed in console
Details (like screenshots): In first Api tests i wrote this
const response = pm.response.json();
pm.globals.set(āfirstresponseā, response);
How I found the problem:in second API test i used compare by writing in test tab
pm.test(āResponse is idential to other responseā, function() {
var responsepage2=pm.response.json();
const responsepage1=pm.globals.get("firstresponse");
pm.expect(responsepage2).to.eql(responsepage1);
});
but unable print the objects and values which are different
Iāve already tried: