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: