I want to verify that a given array doesn’t contain any of a list of values. There is expect.arrayContaining but I don’t get how it is supposed to be used for this. See this example: This test fails which is the expected behavior. I want to verify that “3” is not included in the array. Everything fine. However, now I
Tag: assertion
How to log response status log in postman
How do I console the response status code in Postman ? I have this snippet here: I want to log response status code 200 if I get it. Thank you in advance Answer you can get it from pm.response object in test script section
Postman – I want to check a value to be inside an array
I am writing a postman test in JavaScript to assert the scenario below. I have an id 1111 and the response returns an array of ids. I want to write a test to match 1111 to be in one of the ids in the array. I have tried to use the include function i.e. Any suggest. Answer You’re trying to