Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Script test to be oneOf

pm.test("Successful POST request", () => {
  pm.expect(pm.response.code).to.be.oneOf([201,202]);
});
Source by learning.postman.com #
 
PREVIOUS NEXT
Tagged: #Script #test #oneOf
ADD COMMENT
Topic
Name
6+7 =