0

I need to test the response code and if it is true do next api call.I am using below code to achieve the desired functionality. Let me know what am i doing wrong.

pm.test("response is valid", function(){
if(pm.response.code === 201){
    postman.setNextRequest("Auto-Deploy Manager Node 2");
} 
else {
    setTimeout(function(){}, 10000);
}
});
Mir
  • 37
  • 1
  • 7

0 Answers0